public class EmbeddedValueResolver extends java.lang.Object implements 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.
ConfigurableBeanFactory.resolveEmbeddedValue(String)
,
ConfigurableBeanFactory.getBeanExpressionResolver()
,
BeanExpressionContext
Constructor and Description |
---|
EmbeddedValueResolver(ConfigurableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolveStringValue(java.lang.String strVal)
Resolve the given String value, for example parsing placeholders.
|
public EmbeddedValueResolver(ConfigurableBeanFactory beanFactory)
@Nullable public java.lang.String resolveStringValue(java.lang.String strVal)
StringValueResolver
resolveStringValue
in interface StringValueResolver
strVal
- the original String value (never null
)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)