spring-framework / org.springframework.beans.factory.config / BeanExpressionResolver / evaluate

evaluate

@Nullable abstract fun evaluate(@Nullable value: String, evalContext: BeanExpressionContext): Any

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

Parameters

value - the value to check

evalContext - the evaluation context

Exceptions

BeansException - if evaluation failed

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