-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Labels
theme: config-dataIssues related to the configuration themeIssues related to the configuration themetype: taskA general taskA general task
Description
Original code comment:
private PropertySources deducePropertySources() {
PropertySourcesPlaceholderConfigurer configurer = getSinglePropertySourcesPlaceholderConfigurer();
if (configurer != null) {
// Flatten the sources into a single list so they can be iterated
// TODO: maybe we don't really need this (and it has lifecycle implications)
return new FlatPropertySources(configurer.getAppliedPropertySources());
}
if (this.environment instanceof ConfigurableEnvironment) {
MutablePropertySources propertySources = ((ConfigurableEnvironment) this.environment)
.getPropertySources();
return new FlatPropertySources(propertySources);
}
// empty, so not very useful, but fulfils the contract
return new MutablePropertySources();
}Metadata
Metadata
Assignees
Labels
theme: config-dataIssues related to the configuration themeIssues related to the configuration themetype: taskA general taskA general task