use of org.walkmod.conf.providers.DynamicModulesConfigurationProvider in project walkmod-core by walkmod.
the class WalkModFacade method createConfig.
private Configuration createConfig(String[] chains, ConfigurationProvider... cp) throws InvalidConfigurationException {
Configuration config = new ConfigurationImpl();
try {
DynamicConfigurationProvider prov = new DynamicConfigurationProvider(options, chains);
prov.init(config);
prov.load();
ConfigurationManager cfgManager = new ConfigurationManager(config, cp);
DynamicModulesConfigurationProvider prov2 = new DynamicModulesConfigurationProvider();
prov2.init(config);
prov2.load();
config = cfgManager.getConfiguration();
config.setParameters(options.getMutableCopyOfDynamicArgs());
} catch (Exception e) {
printConfigError(e);
}
return config;
}
Aggregations