Search in sources :

Example 1 with DummyConfigurationProvider

use of org.walkmod.conf.DummyConfigurationProvider in project walkmod-core by walkmod.

the class DynamicModulesConfigurationProvider method load.

@Override
public void load() throws ConfigurationException {
    DummyConfigurationProvider dummy = new DummyConfigurationProvider();
    dummy.init(configuration);
    try {
        configuration.runInitializers(dummy);
    } catch (Exception e) {
        throw new ConfigurationException("Error running initializers", e);
    }
    List<String> modules = configuration.getModules();
    if (modules != null && !modules.isEmpty()) {
        configuration.getChainConfigs().clear();
    }
}
Also used : DummyConfigurationProvider(org.walkmod.conf.DummyConfigurationProvider) ConfigurationException(org.walkmod.conf.ConfigurationException) ConfigurationException(org.walkmod.conf.ConfigurationException)

Aggregations

ConfigurationException (org.walkmod.conf.ConfigurationException)1 DummyConfigurationProvider (org.walkmod.conf.DummyConfigurationProvider)1