Class PropertySourcesPlaceholdersResolver
java.lang.Object
org.springframework.boot.context.properties.bind.PropertySourcesPlaceholdersResolver
- All Implemented Interfaces:
PlaceholdersResolver
PlaceholdersResolver
to resolve placeholders from PropertySources
.- Since:
- 2.0.0
-
Field Summary
Fields inherited from interface org.springframework.boot.context.properties.bind.PlaceholdersResolver
NONE
-
Constructor Summary
ConstructorDescriptionPropertySourcesPlaceholdersResolver
(Iterable<org.springframework.core.env.PropertySource<?>> sources) PropertySourcesPlaceholdersResolver
(Iterable<org.springframework.core.env.PropertySource<?>> sources, org.springframework.util.PropertyPlaceholderHelper helper) PropertySourcesPlaceholdersResolver
(org.springframework.core.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
resolvePlaceholder
(String placeholder) resolvePlaceholders
(Object value) Called to resolve any placeholders in the given value.
-
Constructor Details
-
PropertySourcesPlaceholdersResolver
public PropertySourcesPlaceholdersResolver(org.springframework.core.env.Environment environment) -
PropertySourcesPlaceholdersResolver
public PropertySourcesPlaceholdersResolver(Iterable<org.springframework.core.env.PropertySource<?>> sources) -
PropertySourcesPlaceholdersResolver
public PropertySourcesPlaceholdersResolver(Iterable<org.springframework.core.env.PropertySource<?>> sources, org.springframework.util.PropertyPlaceholderHelper helper)
-
-
Method Details
-
resolvePlaceholders
Description copied from interface:PlaceholdersResolver
Called to resolve any placeholders in the given value.- Specified by:
resolvePlaceholders
in interfacePlaceholdersResolver
- Parameters:
value
- the source value- Returns:
- a value with placeholders resolved
-
resolvePlaceholder
-