use of cn.taketoday.context.support.PropertySourcesPlaceholderConfigurer in project today-framework by TAKETODAY.
the class PropertySourcesDeducer method getPropertySources.
PropertySources getPropertySources() {
PropertySourcesPlaceholderConfigurer configurer = getSinglePropertySourcesPlaceholderConfigurer();
if (configurer != null) {
return configurer.getAppliedPropertySources();
}
PropertySources sources = extractEnvironmentPropertySources();
Assert.state(sources != null, "Unable to obtain PropertySources from PropertySourcesPlaceholderConfigurer or Environment");
return sources;
}
Aggregations