Java 类org.apache.commons.configuration.ConfigurationFactory 实例源码

项目:androidpn-server    文件:ConfigManager.java   
/**
 * 加载指定配置文件
 * 
 * @param configFileName
 *            这个文件的名称
 */
   public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("加载配置文件: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("配置文件加载错误: " + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
/**
 * Loads the specific configuration file.
 * 
 * @param configFileName the file name
 */
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
/**
 * Loads the specific configuration file.
 * 
 * @param configFileName the file name
 */
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
/**
 * Loads the specific configuration file.
 * 
 * @param configFileName the file name
 */
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
/**
 * Loads the specific configuration file.
 * 
 * @param configFileName the file name
 */
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
/**
 * Loads the specific configuration file.
 * 
 * @param configFileName the file name
 */
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}
项目:Androidpn    文件:ConfigManager.java   
/**
 * Loads the specific configuration file.
 * 
 * @param configFileName the file name
 */
public void loadConfig(String configFileName) {
    try {
        ConfigurationFactory factory = new ConfigurationFactory(
                configFileName);
        config = factory.getConfiguration();
        log.info("Configuration loaded: " + configFileName);
    } catch (Exception ex) {
        log.error(ex.getMessage(), ex);
        throw new RuntimeException("Configuration loading error: "
                + configFileName, ex);
    }
}