Skip to content

Commit

Permalink
make the property resolver configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
1zg12 committed Apr 6, 2021
1 parent e4f753e commit af602bb
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -154,10 +154,17 @@ public String getProperty(String key) {
}
}

processProperties(beanFactory, new PropertySourcesPropertyResolver(this.propertySources));
processProperties(beanFactory, getPropertyResolver(this.propertySources));
this.appliedPropertySources = this.propertySources;
}

/**
* Construct and provide a PropertyResolver from the given properties.
*/
public ConfigurablePropertyResolver getPropertyResolver(MutablePropertySources propertySources){
return new PropertySourcesPropertyResolver(propertySources);
}

/**
* Visit each bean definition in the given bean factory and attempt to replace ${...} property
* placeholders with values from the given properties.
Expand Down

0 comments on commit af602bb

Please sign in to comment.