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 aEvaluationContext
built using the given parameter values.default ValueEvaluationContext
getEvaluationContext
(Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContext
built using the given parameter values and consideringexpression dependencies
.
-
Method Details
-
getEvaluationContext
Return aEvaluationContext
built 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 tailoredEvaluationContext
built using the given parameter values and consideringexpression dependencies
. The returnedEvaluationContext
may 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:
-