public interface BeanExpressionResolver
A raw BeanFactory
does not
contain a default implementation of this strategy. However,
ApplicationContext
implementations
will provide expression support out of the box.
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(String value,
BeanExpressionContext beanExpressionContext)
Evaluate the given value as an expression, if applicable;
return the value as-is otherwise.
|
@Nullable Object evaluate(@Nullable String value, BeanExpressionContext beanExpressionContext) throws BeansException
value
- the value to evaluate as an expressionbeanExpressionContext
- the bean expression context to use when
evaluating the expressionBeansException
- if evaluation failed