Interface BeanExpressionResolver
- All Known Implementing Classes:
StandardBeanExpressionResolver
public interface BeanExpressionResolver
Strategy interface for resolving a value through evaluating it as an expression, if applicable.A raw
BeanFactorydoes not contain a default implementation of this strategy. However,ApplicationContextimplementations will provide expression support out of the box.- Since:
- 3.0
- Author:
- Juergen Hoeller
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectevaluate(String value, BeanExpressionContext evalContext)Evaluate the given value as an expression, if applicable; return the value as-is otherwise.
Method Detail
evaluate
Object evaluate(String value, BeanExpressionContext evalContext) throws BeansException
Evaluate the given value as an expression, if applicable; return the value as-is otherwise.- Parameters:
value- the value to checkevalContext- the evaluation context- Returns:
- the resolved value (potentially the given value as-is)
- Throws:
BeansException- if evaluation failed