Search in sources :

Example 1 with ConfigSourceProvider

use of org.apache.deltaspike.core.spi.config.ConfigSourceProvider in project deltaspike by apache.

the class ConfigResolver method resolveConfigSources.

private static List<ConfigSource> resolveConfigSources() {
    List<ConfigSource> appConfigSources = ServiceUtils.loadServiceImplementations(ConfigSource.class);
    List<ConfigSourceProvider> configSourceProviderServiceLoader = ServiceUtils.loadServiceImplementations(ConfigSourceProvider.class);
    for (ConfigSourceProvider configSourceProvider : configSourceProviderServiceLoader) {
        appConfigSources.addAll(configSourceProvider.getConfigSources());
    }
    List<? extends ConfigFilter> configFilters = ServiceUtils.loadServiceImplementations(ConfigFilter.class);
    for (ConfigFilter configFilter : configFilters) {
        addConfigFilter(configFilter);
    }
    return appConfigSources;
}
Also used : ConfigSource(org.apache.deltaspike.core.spi.config.ConfigSource) ConfigSourceProvider(org.apache.deltaspike.core.spi.config.ConfigSourceProvider) ConfigFilter(org.apache.deltaspike.core.spi.config.ConfigFilter)

Aggregations

ConfigFilter (org.apache.deltaspike.core.spi.config.ConfigFilter)1 ConfigSource (org.apache.deltaspike.core.spi.config.ConfigSource)1 ConfigSourceProvider (org.apache.deltaspike.core.spi.config.ConfigSourceProvider)1