Class ReactiveExtensionAwareQueryMethodEvaluationContextProvider
java.lang.Object
org.springframework.data.repository.query.ReactiveExtensionAwareQueryMethodEvaluationContextProvider
- All Implemented Interfaces:
QueryMethodEvaluationContextProvider
,ReactiveQueryMethodEvaluationContextProvider
public class ReactiveExtensionAwareQueryMethodEvaluationContextProvider
extends Object
implements ReactiveQueryMethodEvaluationContextProvider
An reactive
QueryMethodEvaluationContextProvider
that assembles an EvaluationContext
from a list of
EvaluationContextExtension
and ReactiveEvaluationContextExtension
.
instances.- Since:
- 2.4
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from interface org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider
DEFAULT
-
Constructor Summary
ConstructorDescriptionReactiveExtensionAwareQueryMethodEvaluationContextProvider
(List<? extends ExtensionIdAware> extensions) Create a newReactiveExtensionAwareQueryMethodEvaluationContextProvider
using the givenEvaluationContextExtension
s andReactiveEvaluationContextExtension
s. -
Method Summary
Modifier and TypeMethodDescription<T extends Parameters<?,
?>>
EvaluationContextgetEvaluationContext
(T parameters, Object[] parameterValues) Returns anEvaluationContext
built using the givenParameters
and parameter values.<T extends Parameters<?,
?>>
EvaluationContextgetEvaluationContext
(T parameters, Object[] parameterValues, ExpressionDependencies dependencies) Returns anEvaluationContext
built using the givenParameters
and parameter values.<T extends Parameters<?,
?>>
reactor.core.publisher.Mono<EvaluationContext>getEvaluationContextLater
(T parameters, Object[] parameterValues) Return aEvaluationContext
built using the givenParameters
and parameter values.<T extends Parameters<?,
?>>
reactor.core.publisher.Mono<EvaluationContext>getEvaluationContextLater
(T parameters, Object[] parameterValues, ExpressionDependencies dependencies) Return aEvaluationContext
built using the givenParameters
and parameter values.
-
Constructor Details
-
ReactiveExtensionAwareQueryMethodEvaluationContextProvider
- Parameters:
beanFactory
- theListableBeanFactory
to lookup theEvaluationContextExtension
s from, must not be null.
-
ReactiveExtensionAwareQueryMethodEvaluationContextProvider
public ReactiveExtensionAwareQueryMethodEvaluationContextProvider(List<? extends ExtensionIdAware> extensions) Create a newReactiveExtensionAwareQueryMethodEvaluationContextProvider
using the givenEvaluationContextExtension
s andReactiveEvaluationContextExtension
s.- Parameters:
extensions
- must not be null.
-
-
Method Details
-
getEvaluationContext
public <T extends Parameters<?,?>> EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues) Description copied from interface:QueryMethodEvaluationContextProvider
Returns anEvaluationContext
built using the givenParameters
and parameter values.- Specified by:
getEvaluationContext
in interfaceQueryMethodEvaluationContextProvider
- Parameters:
parameters
- theParameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.- Returns:
-
getEvaluationContext
public <T extends Parameters<?,?>> EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues, ExpressionDependencies dependencies) Description copied from interface:QueryMethodEvaluationContextProvider
Returns anEvaluationContext
built using the givenParameters
and parameter values.- Specified by:
getEvaluationContext
in interfaceQueryMethodEvaluationContextProvider
- Parameters:
parameters
- theParameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.- Returns:
-
getEvaluationContextLater
public <T extends Parameters<?,?>> reactor.core.publisher.Mono<EvaluationContext> getEvaluationContextLater(T parameters, Object[] parameterValues) Description copied from interface:ReactiveQueryMethodEvaluationContextProvider
Return aEvaluationContext
built using the givenParameters
and parameter values.- Specified by:
getEvaluationContextLater
in interfaceReactiveQueryMethodEvaluationContextProvider
- Parameters:
parameters
- theParameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.- Returns:
- a mono that emits exactly one
EvaluationContext
.
-
getEvaluationContextLater
public <T extends Parameters<?,?>> reactor.core.publisher.Mono<EvaluationContext> getEvaluationContextLater(T parameters, Object[] parameterValues, ExpressionDependencies dependencies) Description copied from interface:ReactiveQueryMethodEvaluationContextProvider
Return aEvaluationContext
built using the givenParameters
and parameter values.- Specified by:
getEvaluationContextLater
in interfaceReactiveQueryMethodEvaluationContextProvider
- Parameters:
parameters
- theParameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.- Returns:
- a mono that emits exactly one
EvaluationContext
.
-