/** * Creates a default configuration setup, which loads its settings from * the static configuration (defaults provided by the developers of the * library) and the user configuration (settings provided by the deployer). * The deployer's settings override the developer's settings. * * If the parameter <code>addSysProps</code> is set to true, the system * properties will be added as third configuration layer. The system * properties configuration allows to override all other settings. * * @param staticConfig the resource name of the developers configuration * @param userConfig the resource name of the deployers configuration * @param addSysProps a flag defining whether to include the system * properties into the configuration. * @return the configured Configuration instance. */ protected Configuration createDefaultHierarchicalConfiguration (final String staticConfig, final String userConfig, final boolean addSysProps) { return createDefaultHierarchicalConfiguration (staticConfig, userConfig, addSysProps, PropertyFileConfiguration.class); }
/** * Creates a default configuration setup, which loads its settings from * the static configuration (defaults provided by the developers of the * library) and the user configuration (settings provided by the deployer). * The deployer's settings override the developer's settings. * * If the parameter <code>addSysProps</code> is set to true, the system * properties will be added as third configuration layer. The system * properties configuration allows to override all other settings. * * @param staticConfig the resource name of the developers configuration * @param userConfig the resource name of the deployers configuration * @param addSysProps a flag defining whether to include the system * properties into the configuration. * @return the configured Configuration instance. */ protected Configuration createDefaultHierarchicalConfiguration (final String staticConfig, final String userConfig, final boolean addSysProps) { return createDefaultHierarchicalConfiguration (staticConfig, userConfig, addSysProps, PropertyFileConfiguration.class); }
/** * Creates a default configuration setup, which loads its settings from * the static configuration (defaults provided by the developers of the * library) and the user configuration (settings provided by the deployer). * The deployer's settings override the developer's settings. * * If the parameter <code>addSysProps</code> is set to true, the system * properties will be added as third configuration layer. The system * properties configuration allows to override all other settings. * * @param staticConfig the resource name of the developers configuration * @param userConfig the resource name of the deployers configuration * @param addSysProps a flag defining whether to include the system * properties into the configuration. * @return the configured Configuration instance. */ protected Configuration createDefaultHierarchicalConfiguration (final String staticConfig, final String userConfig, final boolean addSysProps) { return createDefaultHierarchicalConfiguration (staticConfig, userConfig, addSysProps, PropertyFileConfiguration.class); }