spring-framework / org.springframework.context.expression / StandardBeanExpressionResolver

StandardBeanExpressionResolver

open class StandardBeanExpressionResolver : BeanExpressionResolver

Standard implementation of the org.springframework.beans.factory.config.BeanExpressionResolver interface, parsing and evaluating Spring EL using Spring's expression module.

Author
Juergen Hoeller

Since
3.0

See Also
org.springframework.expression.ExpressionParserorg.springframework.expression.spel.standard.SpelExpressionParserorg.springframework.expression.spel.support.StandardEvaluationContext

Constructors

<init>

StandardBeanExpressionResolver()

Create a new StandardBeanExpressionResolver with default settings.

StandardBeanExpressionResolver(beanClassLoader: ClassLoader)

Create a new StandardBeanExpressionResolver with the given bean class loader, using it as the basis for expression compilation.

Properties

DEFAULT_EXPRESSION_PREFIX

static val DEFAULT_EXPRESSION_PREFIX: String

Default expression prefix: "#{"

DEFAULT_EXPRESSION_SUFFIX

static val DEFAULT_EXPRESSION_SUFFIX: String

Default expression suffix: "}"

Functions

evaluate

open fun evaluate(value: String, evalContext: BeanExpressionContext): Any

setExpressionParser

open fun setExpressionParser(expressionParser: ExpressionParser): Unit

Specify the EL parser to use for expression parsing.

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

setExpressionPrefix

open fun setExpressionPrefix(expressionPrefix: String): Unit

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

setExpressionSuffix

open fun setExpressionSuffix(expressionSuffix: String): Unit

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