Package org.jconfig.handler

Examples of org.jconfig.handler.PropertiesFileHandler


   
    /**
     * Method testAddPropertyListener.
     */
    public void testAddPropertyListener() throws Exception {
        ConfigurationHandler ish = new PropertiesFileHandler("jconfig.properties");
       
        ConfigurationManager.getInstance().load(ish,"default");
        ConfigurationManager manager = ConfigurationManager.getInstance();
    }
View Full Code Here


    /**
     * Method testInputStreamHandler.
     * @throws Exception
     */
    public void testInputStreamHandler() throws Exception {
        ConfigurationHandler ish = new PropertiesFileHandler("jconfig.properties");
       
        Configuration config = ConfigurationManager.getConfiguration("default");
        ConfigurationManager.getInstance().load(ish,"default");
        assertEquals("8080",config.getProperty("http.proxyPort"));
        assertEquals("192.168.3.1",config.getProperty("http.proxyHost"));
View Full Code Here

TOP

Related Classes of org.jconfig.handler.PropertiesFileHandler

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.