Package org.jboss.gravia.runtime.spi

Examples of org.jboss.gravia.runtime.spi.MapPropertiesProvider


    }

    public OSGiPropertiesProvider(BundleContext bundleContext, boolean systemPropertyDelegation, String environmentVariablePrefix) {
        this.delegate = new SubstitutionPropertiesProvider(new CompositePropertiesProvider(
                new BundleContextPropertiesProvider(bundleContext),
                systemPropertyDelegation ? new SystemPropertiesProvider() : new MapPropertiesProvider(),
                new EnvPropertiesProvider(environmentVariablePrefix)
        ));
    }
View Full Code Here


    }

    public OSGiPropertiesProvider(BundleContext bundleContext, boolean systemPropertyDelegation, String environmentVariablePrefix) {
        this.delegate = new SubstitutionPropertiesProvider(new CompositePropertiesProvider(
                new BundleContextPropertiesProvider(bundleContext),
                systemPropertyDelegation ? new SystemPropertiesProvider() : new MapPropertiesProvider(),
                new EnvPropertiesProvider(environmentVariablePrefix)
        ));
    }
View Full Code Here

            public Object getProperty(String key, Object defaultValue) {
                return runtime.getProperty(key, defaultValue);
            }
        };

        final PropertiesProvider configurationProvider = new MapPropertiesProvider((Map<String, Object>) configuration);
        final PropertiesProvider[] propertiesProviders = new PropertiesProvider[]{configurationProvider, runtimeProperties};

        PropertiesProvider provider = new SubstitutionPropertiesProvider(propertiesProviders);

        for (Map.Entry<String, ?> entry : configuration.entrySet()) {
View Full Code Here

TOP

Related Classes of org.jboss.gravia.runtime.spi.MapPropertiesProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.