Package org.springframework.data.spel
Interface EvaluationContextProvider
- All Known Subinterfaces:
- ReactiveEvaluationContextProvider
- All Known Implementing Classes:
- ExtensionAwareEvaluationContextProvider,- ReactiveExtensionAwareEvaluationContextProvider,- SpELContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides a way to access a centrally defined potentially shared 
StandardEvaluationContext.- Since:
- 2.1
- Author:
- Thomas Darimont, Oliver Gierke, Christoph Strobl, Mark Paluch
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final EvaluationContextProviderA simple defaultEvaluationContextProviderreturning aStandardEvaluationContextwith the given root object.
- 
Method SummaryModifier and TypeMethodDescriptiongetEvaluationContext(Object rootObject) Return aEvaluationContextbuilt using the given parameter values.default EvaluationContextgetEvaluationContext(Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContextbuilt using the given parameter values and consideringexpression dependencies.
- 
Field Details- 
DEFAULTA simple defaultEvaluationContextProviderreturning aStandardEvaluationContextwith the given root object.
 
- 
- 
Method Details- 
getEvaluationContextReturn aEvaluationContextbuilt using the given parameter values.- Parameters:
- rootObject- the root object to set in the- EvaluationContext.
- Returns:
 
- 
getEvaluationContextdefault EvaluationContext getEvaluationContext(@Nullable Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContextbuilt using the given parameter values and consideringexpression dependencies. The returnedEvaluationContextmay contain a reduced visibility of methods and properties/fields according to the requiredexpression dependencies.- Parameters:
- rootObject- the root object to set in the- EvaluationContext.
- dependencies- the requested expression dependencies to be available.
- Returns:
- Since:
- 2.4
 
 
-