Interface QueryMethodEvaluationContextProvider
- All Known Subinterfaces:
ReactiveQueryMethodEvaluationContextProvider
- All Known Implementing Classes:
ExtensionAwareQueryMethodEvaluationContextProvider
,ReactiveExtensionAwareQueryMethodEvaluationContextProvider
public interface QueryMethodEvaluationContextProvider
Provides a way to access a centrally defined potentially shared
EvaluationContext
.- Since:
- 1.9
- Author:
- Thomas Darimont, Oliver Gierke, Christoph Strobl
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Parameters<?,
?>>
org.springframework.expression.EvaluationContextgetEvaluationContext
(T parameters, Object[] parameterValues) Returns anEvaluationContext
built using the givenParameters
and parameter values.<T extends Parameters<?,
?>>
org.springframework.expression.EvaluationContextgetEvaluationContext
(T parameters, Object[] parameterValues, ExpressionDependencies dependencies) Returns anEvaluationContext
built using the givenParameters
and parameter values.
-
Field Details
-
DEFAULT
-
-
Method Details
-
getEvaluationContext
<T extends Parameters<?,?>> org.springframework.expression.EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues) Returns anEvaluationContext
built using the givenParameters
and parameter values.- Parameters:
parameters
- theParameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.- Returns:
-
getEvaluationContext
<T extends Parameters<?,?>> org.springframework.expression.EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues, ExpressionDependencies dependencies) Returns anEvaluationContext
built using the givenParameters
and parameter values.- Parameters:
parameters
- theParameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.- Returns:
-