Package org.jconfig.handler

Examples of org.jconfig.handler.InputStreamHandler


        } else {
            String fileName = "config.xml";
            if ( !name.equals("default") ) {
                fileName = name+"_config.xml";
            }
            InputStreamHandler ish = new InputStreamHandler(fileName);
            try {               
                Configuration config = ish.load(name);
                if ( config != null ) {
                    //config.setConfigName(name);
                    configurations.put(name, config);
                    handlerMapping.put(name, ish);
                    getInstance().addFileListener(name,new ConfigurationFileListener(name));
View Full Code Here


public class ConfigurationLoader {

  private static final ConfigurationManager cm = ConfigurationManager.getInstance();
 
  public static Configuration load() throws ConfigurationManagerException {
    InputStreamHandler ish = new InputStreamHandler("config.xml");
    Configuration config = ish.load("default");
    cm.setConfiguration(config,ish);
    return config;
  }
View Full Code Here

    cm.setConfiguration(config,ish);
    return config;
  }
 
  public static Configuration load(String configName) throws ConfigurationManagerException {
    InputStreamHandler ish = new InputStreamHandler(configName+"_config.xml");
    Configuration config = ish.load(configName);
    cm.setConfiguration(config,ish);
    return config;
  }
View Full Code Here

    cm.setConfiguration(config,ish);
    return config;
  }
 
  public static Configuration load(String configName,String parserName) throws ConfigurationManagerException {
    InputStreamHandler ish = new InputStreamHandler(configName+"_config.xml");
    ConfigurationParser parser = getParser(parserName);
    Configuration config = ish.load(configName,parser);
    cm.setConfiguration(config,ish);
    return config;
  }
View Full Code Here

TOP

Related Classes of org.jconfig.handler.InputStreamHandler

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.