@FunctionalInterface public interface EvaluationContextProvider
StandardEvaluationContext.| Modifier and Type | Field and Description |
|---|---|
static EvaluationContextProvider |
DEFAULT
A simple default
EvaluationContextProvider returning a StandardEvaluationContext with the given
root object. |
| Modifier and Type | Method and Description |
|---|---|
EvaluationContext |
getEvaluationContext(Object rootObject)
Return a
EvaluationContext built using the given parameter values. |
default EvaluationContext |
getEvaluationContext(Object rootObject,
ExpressionDependencies dependencies)
Return a tailored
EvaluationContext built using the given parameter values and considering
expression dependencies. |
static final EvaluationContextProvider DEFAULT
EvaluationContextProvider returning a StandardEvaluationContext with the given
root object.EvaluationContext getEvaluationContext(Object rootObject)
EvaluationContext built using the given parameter values.rootObject - the root object to set in the EvaluationContext.default EvaluationContext getEvaluationContext(Object rootObject, ExpressionDependencies dependencies)
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.rootObject - the root object to set in the EvaluationContext.dependencies - the requested expression dependencies to be available.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.