Interface ValueEvaluationContextProvider
- All Known Subinterfaces:
ReactiveValueEvaluationContextProvider
- All Known Implementing Classes:
CachingValueExpressionEvaluatorFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
SPI to provide to access a centrally defined potentially shared
ValueEvaluationContext.- Since:
- 3.3
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptiongetEvaluationContext(Object rootObject) Return aEvaluationContextbuilt using the given parameter values.default ValueEvaluationContextgetEvaluationContext(Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContextbuilt using the given parameter values and consideringexpression dependencies.
-
Method Details
-
getEvaluationContext
Return aEvaluationContextbuilt using the given parameter values.- Parameters:
rootObject- the root object to set in theEvaluationContext.- Returns:
-
getEvaluationContext
default ValueEvaluationContext 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 theEvaluationContext.dependencies- the requested expression dependencies to be available.- Returns:
-