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

public Interface BeanExpressionResolver

Imports
org.springframework.beans.BeansException, org.springframework.lang.Nullable

Strategy interface for resolving a value by evaluating it as an expression, if applicable.

A raw org.springframework.beans.factory.BeanFactory does not contain a default implementation of this strategy. However, org.springframework.context.ApplicationContext implementations will provide expression support out of the box.

Author
Juergen Hoeller
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the resolved value (potentially the given value as-is)
evaluate
(String
the value to evaluate as an expression
value
,
BeanExpressionContext
the bean expression context to use when evaluating the expression
beanExpressionContext
)

Evaluate the given value as an expression, if applicable; return the value as-is otherwise.

Method Detail

evaluateback to summary
public Object evaluate(String value, BeanExpressionContext beanExpressionContext) throws BeansException

Evaluate the given value as an expression, if applicable; return the value as-is otherwise.

Parameters
value:String

the value to evaluate as an expression

beanExpressionContext:BeanExpressionContext

the bean expression context to use when evaluating the expression

Returns:Object

the resolved value (potentially the given value as-is)

Annotations
@Nullable
Exceptions
BeansException:
if evaluation failed