Class EmbeddedValueResolver
java.lang.Object
org.springframework.beans.factory.config.EmbeddedValueResolver
- All Implemented Interfaces:
StringValueResolver
StringValueResolver adapter for resolving placeholders and
expressions against a ConfigurableBeanFactory.
Note that this adapter resolves expressions as well, in contrast
to the ConfigurableBeanFactory.resolveEmbeddedValue(String) method.
The BeanExpressionContext used is for the plain bean factory,
with no scope specified for any contextual objects to access.
- Since:
- 4.3
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveStringValue(String strVal) Resolve the given String value, for example parsing placeholders.
-
Constructor Details
-
EmbeddedValueResolver
-
-
Method Details
-
resolveStringValue
Description copied from interface:StringValueResolverResolve the given String value, for example parsing placeholders.- Specified by:
resolveStringValuein interfaceStringValueResolver- Parameters:
strVal- the original String value (nevernull)- Returns:
- the resolved String value (may be
nullwhen resolved to a null value), possibly the original String value itself (in case of no placeholders to resolve or when ignoring unresolvable placeholders)
-