org.springframework.context.expression

## 类 StandardBeanExpressionResolver

- java.lang.Object
- - org.springframework.context.expression.StandardBeanExpressionResolver

- 所有已实现的接口:
    org.springframework.beans.factory.config.BeanExpressionResolver

      public class StandardBeanExpressionResolver
      extends Object
      implements org.springframework.beans.factory.config.BeanExpressionResolver

  Standard implementation of the `BeanExpressionResolver` interface, parsing and evaluating Spring EL using Spring's expression module.
  从以下版本开始:
    3.0
  作者:
    Juergen Hoeller
  另请参阅:
    `ExpressionParser`, `SpelExpressionParser`, `StandardEvaluationContext`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `DEFAULT_EXPRESSION_PREFIX` Default expression prefix: "#{"
    `static String` | `DEFAULT_EXPRESSION_SUFFIX` Default expression suffix: "}"

  - ### 构造器概要

    构造器
    构造器和说明
    `StandardBeanExpressionResolver()` Create a new `StandardBeanExpressionResolver` with default settings.
    `StandardBeanExpressionResolver(ClassLoader beanClassLoader)` Create a new `StandardBeanExpressionResolver` with the given bean class loader, using it as the basis for expression compilation.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | `customizeEvaluationContext(org.springframework.expression.spel.support.StandardEvaluationContext evalContext)` Template method for customizing the expression evaluation context.
    `Object` | `evaluate(String value, org.springframework.beans.factory.config.BeanExpressionContext evalContext)`
    `void` | `setExpressionParser(org.springframework.expression.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.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### DEFAULT_EXPRESSION_PREFIX

          public static final String DEFAULT_EXPRESSION_PREFIX

      Default expression prefix: "#{"
      另请参阅:
        常量字段值

    - #### DEFAULT_EXPRESSION_SUFFIX

          public static final String DEFAULT_EXPRESSION_SUFFIX

      Default expression suffix: "}"
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### StandardBeanExpressionResolver

          public StandardBeanExpressionResolver()

      Create a new `StandardBeanExpressionResolver` with default settings.

    - #### StandardBeanExpressionResolver

          public StandardBeanExpressionResolver(@Nullable
                                                ClassLoader beanClassLoader)

      Create a new `StandardBeanExpressionResolver` with the given bean class loader, using it as the basis for expression compilation.
      参数:
        `beanClassLoader` - the factory's bean class loader

  - ### 方法详细资料

    - #### setExpressionPrefix

          public void setExpressionPrefix(String expressionPrefix)

      Set the prefix that an expression string starts with. The default is "#{".
      另请参阅:
        `DEFAULT_EXPRESSION_PREFIX`

    - #### setExpressionSuffix

          public void setExpressionSuffix(String expressionSuffix)

      Set the suffix that an expression string ends with. The default is "}".
      另请参阅:
        `DEFAULT_EXPRESSION_SUFFIX`

    - #### setExpressionParser

          public void setExpressionParser(org.springframework.expression.ExpressionParser expressionParser)

      Specify the EL parser to use for expression parsing.

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

    - #### evaluate

          @Nullable
          public Object evaluate(@Nullable
                                            String value,
                                            org.springframework.beans.factory.config.BeanExpressionContext evalContext)
                                     throws org.springframework.beans.BeansException

      指定者:
        `evaluate` 在接口中 `org.springframework.beans.factory.config.BeanExpressionResolver`
      抛出:
        `org.springframework.beans.BeansException`

    - #### customizeEvaluationContext

          protected void customizeEvaluationContext(org.springframework.expression.spel.support.StandardEvaluationContext evalContext)

      Template method for customizing the expression evaluation context.

      The default implementation is empty.