public class

StandardBeanExpressionResolver

extends Object
implements BeanExpressionResolver
java.lang.Object
   ↳ org.springframework.context.expression.StandardBeanExpressionResolver

Class Overview

Standard implementation of the BeanExpressionResolver interface, parsing and evaluating Spring EL using Spring's expression module.

Summary

Constants
String DEFAULT_EXPRESSION_PREFIX Default expression prefix: "#{"
String DEFAULT_EXPRESSION_SUFFIX Default expression suffix: "}"
Public Constructors
StandardBeanExpressionResolver()
Public Methods
Object evaluate(String value, BeanExpressionContext evalContext)
Evaluate the given value as an expression, if applicable; return the value as-is otherwise.
void setExpressionParser(ExpressionParser expressionParser)
Specify the EL parser to use for expression parsing.
void setExpressionPrefix(String expressionPrefix)
Set the prefix that an expression string starts with.
void setExpressionSuffix(String expressionSuffix)
Set the suffix that an expression string ends with.
Protected Methods
void customizeEvaluationContext(StandardEvaluationContext evalContext)
Template method for customizing the expression evaluation context.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.config.BeanExpressionResolver

Constants

public static final String DEFAULT_EXPRESSION_PREFIX

Default expression prefix: "#{"

Constant Value: "#{"

public static final String DEFAULT_EXPRESSION_SUFFIX

Default expression suffix: "}"

Constant Value: "}"

Public Constructors

public StandardBeanExpressionResolver ()

Public Methods

public Object evaluate (String value, BeanExpressionContext evalContext)

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
Returns
  • the resolved value (potentially the given value as-is)

public void setExpressionParser (ExpressionParser expressionParser)

Specify the EL parser to use for expression parsing.

Default is a SpelExpressionParser, compatible with standard Unified EL style expression syntax.

public void setExpressionPrefix (String expressionPrefix)

Set the prefix that an expression string starts with. The default is "#{".

public void setExpressionSuffix (String expressionSuffix)

Set the suffix that an expression string ends with. The default is "}".

Protected Methods

protected void customizeEvaluationContext (StandardEvaluationContext evalContext)

Template method for customizing the expression evaluation context.

The default implementation is empty.