Skip to content

Commit

Permalink
Polish "Restore customization of PropertyResolver"
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Aug 26, 2023
1 parent 00fffb7 commit 2731d4f
Showing 1 changed file with 6 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -170,14 +170,16 @@ public String getProperty(String key) {
}
}

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

/**
* Construct and provide a PropertyResolver from the given properties.
* Create a {@link ConfigurablePropertyResolver} for the specified property sources.
* @param propertySources the property sources to use
* @since 6.0.12
*/
public ConfigurablePropertyResolver getPropertyResolver(MutablePropertySources propertySources){
protected ConfigurablePropertyResolver createPropertyResolver(MutablePropertySources propertySources){
return new PropertySourcesPropertyResolver(propertySources);
}

Expand Down

0 comments on commit 2731d4f

Please sign in to comment.