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(java.lang.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
-
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:StringValueResolver
Resolve the given String value, for example parsing placeholders.- Specified by:
resolveStringValue
in interfaceStringValueResolver
- Parameters:
strVal
- the original String value (nevernull
)- Returns:
- the resolved String value (may be
null
when resolved to a null value), possibly the original String value itself (in case of no placeholders to resolve or when ignoring unresolvable placeholders)
-