public class ExtensionAwareEvaluationContextProvider extends Object implements EvaluationContextProvider, ApplicationContextAware
EvaluationContextProvider
that assembles an EvaluationContext
from a list of
EvaluationContextExtension
instances.Constructor and Description |
---|
ExtensionAwareEvaluationContextProvider()
Creates a new
ExtensionAwareEvaluationContextProvider . |
ExtensionAwareEvaluationContextProvider(List<? extends EvaluationContextExtension> extensions)
Creates a new
ExtensionAwareEvaluationContextProvider for the given EvaluationContextExtension s. |
Modifier and Type | Method and Description |
---|---|
<T extends Parameters<T,? extends Parameter>> |
getEvaluationContext(T parameters,
Object[] parameterValues)
Returns an
EvaluationContext built using the given Parameters and parameter values. |
void |
setApplicationContext(ApplicationContext applicationContext) |
public ExtensionAwareEvaluationContextProvider()
ExtensionAwareEvaluationContextProvider
. Extensions are being looked up lazily from the
BeanFactory
configured.public ExtensionAwareEvaluationContextProvider(List<? extends EvaluationContextExtension> extensions)
ExtensionAwareEvaluationContextProvider
for the given EvaluationContextExtension
s.adapters
- must not be null.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public <T extends Parameters<T,? extends Parameter>> StandardEvaluationContext getEvaluationContext(T parameters, Object[] parameterValues)
EvaluationContextProvider
EvaluationContext
built using the given Parameters
and parameter values.getEvaluationContext
in interface EvaluationContextProvider
parameters
- the Parameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.