接口 BeanExpressionResolver
- 所有已知实现类:
StandardBeanExpressionResolver
public interface BeanExpressionResolver
Strategy interface for resolving a value through evaluating it as an expression, if applicable.A raw
BeanFactory
does not contain a default implementation of this strategy. However,ApplicationContext
implementations will provide expression support out of the box.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller
方法详细资料
evaluate
Object evaluate(String value, BeanExpressionContext evalContext) throws BeansException
Evaluate the given value as an expression, if applicable; return the value as-is otherwise.- 参数:
value
- the value to checkevalContext
- the evaluation context- 返回:
- the resolved value (potentially the given value as-is)
- 抛出:
BeansException
- if evaluation failed