Package org.springframework.data.spel
Class ExtensionAwareEvaluationContextProvider
java.lang.Object
org.springframework.data.spel.ExtensionAwareEvaluationContextProvider
- All Implemented Interfaces:
- EvaluationContextProvider
public class ExtensionAwareEvaluationContextProvider
extends Object
implements EvaluationContextProvider
An 
EvaluationContextProvider that assembles an EvaluationContext from a list of
 EvaluationContextExtension instances.- Since:
- 2.1
- Author:
- Thomas Darimont, Oliver Gierke, Christoph Strobl, Jens Schauder, Mark Paluch
- 
Field SummaryFields inherited from interface org.springframework.data.spel.EvaluationContextProviderDEFAULT
- 
Constructor SummaryConstructorsConstructorDescriptionExtensionAwareEvaluationContextProvider(Collection<? extends ExtensionIdAware> extensions) Creates a newExtensionAwareEvaluationContextProviderfor the givenEvaluationContextExtensions.Creates a newExtensionAwareEvaluationContextProviderwith extensions looked up lazily from the givenBeanFactory.ExtensionAwareEvaluationContextProvider(Lazy<? extends Collection<? extends ExtensionIdAware>> extensions) 
- 
Method SummaryModifier and TypeMethodDescriptiongetEvaluationContext(Object rootObject) Return aEvaluationContextbuilt using the given parameter values.getEvaluationContext(Object rootObject, ExpressionDependencies dependencies) Return a tailoredEvaluationContextbuilt using the given parameter values and consideringexpression dependencies.
- 
Constructor Details- 
ExtensionAwareEvaluationContextProviderCreates a newExtensionAwareEvaluationContextProviderwith extensions looked up lazily from the givenBeanFactory.- Parameters:
- beanFactory- the- ListableBeanFactoryto lookup extensions from.
 
- 
ExtensionAwareEvaluationContextProviderCreates a newExtensionAwareEvaluationContextProviderfor the givenEvaluationContextExtensions.- Parameters:
- extensions- must not be null.
 
- 
ExtensionAwareEvaluationContextProviderpublic ExtensionAwareEvaluationContextProvider(Lazy<? extends Collection<? extends ExtensionIdAware>> extensions) 
 
- 
- 
Method Details- 
getEvaluationContextDescription copied from interface:EvaluationContextProviderReturn aEvaluationContextbuilt using the given parameter values.- Specified by:
- getEvaluationContextin interface- EvaluationContextProvider
- Parameters:
- rootObject- the root object to set in the- EvaluationContext.
- Returns:
 
- 
getEvaluationContextpublic StandardEvaluationContext getEvaluationContext(@Nullable Object rootObject, ExpressionDependencies dependencies) Description copied from interface:EvaluationContextProviderReturn 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.- Specified by:
- getEvaluationContextin interface- EvaluationContextProvider
- Parameters:
- rootObject- the root object to set in the- EvaluationContext.
- dependencies- the requested expression dependencies to be available.
- Returns:
 
 
-