Top Description Fields Constructors Methods
org.springframework.beans.factory.config

public Class EmbeddedValueResolver

extends Object
implements StringValueResolver
Class Inheritance
All Implemented Interfaces
org.springframework.util.StringValueResolver
Imports
org.springframework.lang.Nullable, org.springframework.util.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 method. The BeanExpressionContext used is for the plain bean factory, with no scope specified for any contextual objects to access.

Author
Juergen Hoeller
Since
4.3
See Also
ConfigurableBeanFactory#resolveEmbeddedValue(String), ConfigurableBeanFactory#getBeanExpressionResolver(), BeanExpressionContext

Field Summary

Modifier and TypeField and Description
private final BeanExpressionContext
private final BeanExpressionResolver

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
resolveStringValue(String
the original String value (never null)
strVal
)

Implements org.springframework.util.StringValueResolver.resolveStringValue.

Resolve the given String value, for example parsing placeholders.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exprContextback to summary
private final BeanExpressionContext exprContext
exprResolverback to summary
private final BeanExpressionResolver exprResolver
Annotations
@Nullable

Constructor Detail

EmbeddedValueResolverback to summary
public EmbeddedValueResolver(ConfigurableBeanFactory beanFactory)

Method Detail

resolveStringValueback to summary
public String resolveStringValue(String strVal)

Implements org.springframework.util.StringValueResolver.resolveStringValue.

Doc from org.springframework.util.StringValueResolver.resolveStringValue.

Resolve the given String value, for example parsing placeholders.

Parameters
strVal:String

the original String value (never null)

Returns:String

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)

Annotations
@Override
@Nullable