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