Class SpelCriteria
java.lang.Object
org.springframework.data.keyvalue.core.SpelCriteria
SpelCriteria
allows to pass on a SpelExpression
and EvaluationContext
to the actual query
processor. This decouples the SpelExpression
from the context it is used in.- Author:
- Christoph Strobl, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionSpelCriteria
(SpelExpression expression) Creates a newSpelCriteria
for the givenSpelExpression
.SpelCriteria
(SpelExpression expression, EvaluationContext context) Creates newSpelCriteria
. -
Method Summary
-
Constructor Details
-
SpelCriteria
Creates a newSpelCriteria
for the givenSpelExpression
.- Parameters:
expression
- must not be null.
-
SpelCriteria
Creates newSpelCriteria
.- Parameters:
expression
- must not be null.context
- must not be null.
-
-
Method Details
-
getContext
- Returns:
- will never be null.
-
getExpression
- Returns:
- will never be null.
-