public class ExtensionAwareEvaluationContextProvider extends Object implements EvaluationContextProvider
EvaluationContextProvider
that assembles an EvaluationContext
from a list of
EvaluationContextExtension
instances.DEFAULT
Constructor and Description |
---|
ExtensionAwareEvaluationContextProvider(Collection<? extends EvaluationContextExtension> extensions)
Creates a new
ExtensionAwareEvaluationContextProvider for the given EvaluationContextExtension s. |
ExtensionAwareEvaluationContextProvider(Lazy<? extends Collection<? extends EvaluationContextExtension>> extensions) |
ExtensionAwareEvaluationContextProvider(ListableBeanFactory beanFactory)
Creates a new
ExtensionAwareEvaluationContextProvider with extensions looked up lazily from the given
BeanFactory . |
Modifier and Type | Method and Description |
---|---|
StandardEvaluationContext |
getEvaluationContext(Object rootObject)
Returns an
EvaluationContext built using the given parameter values. |
void |
setBeanFactory(ListableBeanFactory beanFactory)
Deprecated.
only exists to temporarily mitigate from the old APIs. Do not use!
|
public ExtensionAwareEvaluationContextProvider(ListableBeanFactory beanFactory)
ExtensionAwareEvaluationContextProvider
with extensions looked up lazily from the given
BeanFactory
.beanFactory
- the ListableBeanFactory
to lookup extensions from.public ExtensionAwareEvaluationContextProvider(Collection<? extends EvaluationContextExtension> extensions)
ExtensionAwareEvaluationContextProvider
for the given EvaluationContextExtension
s.extensions
- must not be null.public ExtensionAwareEvaluationContextProvider(Lazy<? extends Collection<? extends EvaluationContextExtension>> extensions)
@Deprecated public void setBeanFactory(ListableBeanFactory beanFactory)
ListableBeanFactory
to be used on the EvaluationContext
to be created.beanFactory
- public StandardEvaluationContext getEvaluationContext(Object rootObject)
EvaluationContextProvider
EvaluationContext
built using the given parameter values.getEvaluationContext
in interface EvaluationContextProvider
rootObject
- the root object to set in the EvaluationContext
.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.