Class ExtensionAwareEvaluationContextProvider

java.lang.Object
org.springframework.data.spel.ExtensionAwareEvaluationContextProvider
All Implemented Interfaces:
EvaluationContextProvider

public class ExtensionAwareEvaluationContextProvider extends Object implements EvaluationContextProvider
An EvaluationContextProvider that assembles an EvaluationContext from a list of EvaluationContextExtension instances.
Since:
2.1
Author:
Thomas Darimont, Oliver Gierke, Christoph Strobl, Jens Schauder, Mark Paluch
  • Constructor Details

  • Method Details

    • getEvaluationContext

      public org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(Object rootObject)
      Description copied from interface: EvaluationContextProvider
      Return a EvaluationContext built using the given parameter values.
      Specified by:
      getEvaluationContext in interface EvaluationContextProvider
      Parameters:
      rootObject - the root object to set in the EvaluationContext.
      Returns:
    • getEvaluationContext

      public org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(Object rootObject, ExpressionDependencies dependencies)
      Description copied from interface: EvaluationContextProvider
      Return a tailored EvaluationContext built using the given parameter values and considering expression dependencies. The returned EvaluationContext may contain a reduced visibility of methods and properties/fields according to the required expression dependencies.
      Specified by:
      getEvaluationContext in interface EvaluationContextProvider
      Parameters:
      rootObject - the root object to set in the EvaluationContext.
      dependencies - the requested expression dependencies to be available.
      Returns: