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;
}
Aggregations