use of org.talend.sdk.component.api.service.configuration.LocalConfiguration in project component-runtime by Talend.
the class ComponentManager method createRawLocalConfigurations.
protected Collection<LocalConfiguration> createRawLocalConfigurations() {
final List<LocalConfiguration> configurations = new ArrayList<>(2);
configurations.addAll(toStream(loadServiceProviders(LocalConfiguration.class, LocalConfiguration.class.getClassLoader())).collect(toList()));
configurations.add(new LocalConfiguration() {
@Override
public String get(final String key) {
return System.getProperty(key);
}
@Override
public Set<String> keys() {
return System.getProperties().stringPropertyNames();
}
});
configurations.add(new LocalConfiguration() {
@Override
public String get(final String key) {
return System.getenv(key);
}
@Override
public Set<String> keys() {
return System.getenv().keySet();
}
});
return configurations;
}
Aggregations