Package org.apache.commons.configuration.reloading

Examples of org.apache.commons.configuration.reloading.FileRandomReloadingStrategy


        final int threadCount = 5;
        final int loopCount = 1000;
        config.setForceReloadCheck(true);
        config.setNodeCombiner(new MergeCombiner());
        final XMLConfiguration xml = new XMLConfiguration("configA.xml");
        xml.setReloadingStrategy(new FileRandomReloadingStrategy());
        config.addConfiguration(xml);
        final XMLConfiguration xml2 = new XMLConfiguration("configB.xml");
        xml2.setReloadingStrategy(new FileRandomReloadingStrategy());
        config.addConfiguration(xml2);
        config.setExpressionEngine(new XPathExpressionEngine());

        assertEquals(config.getString("/property[@name='config']/@value"), "100");
View Full Code Here


        final int threadCount = 5;
        final int loopCount = 1000;
        config.setForceReloadCheck(true);
        config.setNodeCombiner(new MergeCombiner());
        final XMLConfiguration xml = new XMLConfiguration("configA.xml");
        xml.setReloadingStrategy(new FileRandomReloadingStrategy());
        config.addConfiguration(xml);
        final XMLConfiguration xml2 = new XMLConfiguration("configB.xml");
        xml2.setReloadingStrategy(new FileRandomReloadingStrategy());
        config.addConfiguration(xml2);
        config.setExpressionEngine(new XPathExpressionEngine());

        assertEquals(config.getString("/property[@name='config']/@value"), "100");
View Full Code Here

        final int threadCount = 5;
        final int loopCount = 1000;
        config.setForceReloadCheck(true);
        config.setNodeCombiner(new MergeCombiner());
        final XMLConfiguration xml = new XMLConfiguration("configA.xml");
        xml.setReloadingStrategy(new FileRandomReloadingStrategy());
        config.addConfiguration(xml);
        final XMLConfiguration xml2 = new XMLConfiguration("configB.xml");
        xml2.setReloadingStrategy(new FileRandomReloadingStrategy());
        config.addConfiguration(xml2);
        config.setExpressionEngine(new XPathExpressionEngine());

        assertEquals(config.getString("/property[@name='config']/@value"), "100");
View Full Code Here

TOP

Related Classes of org.apache.commons.configuration.reloading.FileRandomReloadingStrategy

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.