Interface ValueEvaluationContextProvider
- All Known Implementing Classes:
CachingValueExpressionEvaluatorFactory
public interface ValueEvaluationContextProvider
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(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:
-