Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 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.nano.config.internal;
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    private final ConfigurationAdmin configurationAdmin;
    private final String pid;
    public ConfigurationAdminConfigurationInfo(@NonNull ConfigurationAdmin configurationAdminString pid) {
        this. = configurationAdmin;
        this. = pid;
    public String getPid() {
        return this.;
    public Map<StringStringgetProperties() {
        try {
            Configuration configuration = .getConfiguration(this.null);
            Map<StringStringproperties = new HashMap<StringString>();
            Dictionary<StringObjectdictionary = configuration.getProperties();
            if (dictionary != null) {
                Enumeration<Stringkeys = dictionary.keys();
                while (keys.hasMoreElements()) {
                    String key = keys.nextElement();
                    String value = (String)dictionary.get(key);
            return properties;
        } catch (IOException e) {
            .warn("Unable to get configuration for {}"this.);
        return null;
New to GrepCode? Check out our FAQ X