public class ExtensionAwareQueryMethodEvaluationContextProvider extends Object implements QueryMethodEvaluationContextProvider
QueryMethodEvaluationContextProvider
that assembles an EvaluationContext
from a list of
EvaluationContextExtension
instances.DEFAULT
Constructor and Description |
---|
ExtensionAwareQueryMethodEvaluationContextProvider(List<? extends EvaluationContextExtension> extensions)
Creates a new
ExtensionAwareQueryMethodEvaluationContextProvider using the given
EvaluationContextExtension s. |
ExtensionAwareQueryMethodEvaluationContextProvider(ListableBeanFactory beanFactory)
Creates a new
ExtensionAwareQueryMethodEvaluationContextProvider . |
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. |
<T extends Parameters<?,?>> |
getEvaluationContext(T parameters,
Object[] parameterValues,
ExpressionDependencies dependencies)
Returns an
EvaluationContext built using the given Parameters and parameter values. |
public ExtensionAwareQueryMethodEvaluationContextProvider(ListableBeanFactory beanFactory)
ExtensionAwareQueryMethodEvaluationContextProvider
.beanFactory
- the ListableBeanFactory
to lookup the EvaluationContextExtension
s from, must not
be null.public ExtensionAwareQueryMethodEvaluationContextProvider(List<? extends EvaluationContextExtension> extensions)
ExtensionAwareQueryMethodEvaluationContextProvider
using the given
EvaluationContextExtension
s.extensions
- must not be null.public <T extends Parameters<?,?>> EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues)
QueryMethodEvaluationContextProvider
EvaluationContext
built using the given Parameters
and parameter values.getEvaluationContext
in interface QueryMethodEvaluationContextProvider
parameters
- the Parameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.public <T extends Parameters<?,?>> EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues, ExpressionDependencies dependencies)
QueryMethodEvaluationContextProvider
EvaluationContext
built using the given Parameters
and parameter values.getEvaluationContext
in interface QueryMethodEvaluationContextProvider
parameters
- the Parameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.