Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 VMware Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: VMware Inc. - initial contribution /
package org.eclipse.virgo.kernel.model.internal.deployer;
import  org.eclipse.equinox.region.Region;
DeployerConfigArtifact is a DeployerArtifact that understands a configuration install artifact's properties.

Concurrent Semantics
Thread safe.

final class DeployerConfigArtifact extends DeployerArtifact {
    public DeployerConfigArtifact(BundleContext bundleContextConfigInstallArtifact configInstallArtifact, Region region) {
        this. = configInstallArtifact;

    public Map<StringStringgetProperties() {
        Map<StringStringproperties = new HashMap<StringString>(super.getProperties());
        try {
            Properties props = this..getProperties();
            Enumeration<Objectkeys = props.keys();
            while (keys.hasMoreElements()) {
                Object key = keys.nextElement();
                if (key instanceof String) {
                    Object value = props.get(key);
                    if (value instanceof String) {
                        properties.put((String)key, (String)value);
        } catch (IOException _) {
            // Default to superclass behaviour
        return properties;
New to GrepCode? Check out our FAQ X