Package com.netflix.config

Examples of com.netflix.config.ConcurrentCompositeConfiguration.addConfiguration()


        ConcurrentMapConfiguration subConfig = new ConcurrentMapConfiguration();
        subConfig.setProperty("com.netflix.config.samples.SampleApp.SampleBean.name", "A Coffee Bean from Cuba");
        myConfiguration.setProperty("com.netflix.config.samples.sampleapp.prop1", "value1");

        myConfiguration.addConfiguration(subConfig);
        System.out.println("Started SampleApplication. Launch JConsole to inspect and update properties.");
        System.out.println("To see how callback work, update property com.netflix.config.samples.SampleApp.SampleBean.sensitiveBeanData from BaseConfigBean in JConsole");
       
        SampleBean sampleBean = new SampleBean();
        // this should show the bean taking properties from two different sources
View Full Code Here


        mapConfig.addProperty("test.key2", "test.value2-map");
        mapConfig.addProperty("test.key3", "test.value3-map");
        mapConfig.addProperty("test.key4", "test.value4-map");
       
        final ConcurrentCompositeConfiguration compositeConfig = new ConcurrentCompositeConfiguration();
        compositeConfig.addConfiguration(zkDynamicOverrideConfig, "zk dynamic override configuration");
        compositeConfig.addConfiguration(mapConfig, "map configuration");
        compositeConfig.addConfiguration(systemConfig, "system configuration");

        // setup ZK properties
        setZkProperty("test.key1", "test.value1-zk");
View Full Code Here

        mapConfig.addProperty("test.key3", "test.value3-map");
        mapConfig.addProperty("test.key4", "test.value4-map");
       
        final ConcurrentCompositeConfiguration compositeConfig = new ConcurrentCompositeConfiguration();
        compositeConfig.addConfiguration(zkDynamicOverrideConfig, "zk dynamic override configuration");
        compositeConfig.addConfiguration(mapConfig, "map configuration");
        compositeConfig.addConfiguration(systemConfig, "system configuration");

        // setup ZK properties
        setZkProperty("test.key1", "test.value1-zk");
        setZkProperty("test.key2", "test.value2-zk");
View Full Code Here

        mapConfig.addProperty("test.key4", "test.value4-map");
       
        final ConcurrentCompositeConfiguration compositeConfig = new ConcurrentCompositeConfiguration();
        compositeConfig.addConfiguration(zkDynamicOverrideConfig, "zk dynamic override configuration");
        compositeConfig.addConfiguration(mapConfig, "map configuration");
        compositeConfig.addConfiguration(systemConfig, "system configuration");

        // setup ZK properties
        setZkProperty("test.key1", "test.value1-zk");
        setZkProperty("test.key2", "test.value2-zk");
        setZkProperty("test.key4", "test.value4-zk");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.