public class ExtensionAwareEvaluationContextProvider extends Object implements EvaluationContextProvider, org.springframework.context.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<?,?>> |
getEvaluationContext(T parameters,
Object[] parameterValues)
Returns an
EvaluationContext built using the given Parameters and parameter values. |
void |
setApplicationContext(org.springframework.context.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(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public <T extends Parameters<?,?>> org.springframework.expression.spel.support.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–2017 Pivotal Software, Inc.. All rights reserved.