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
ConstructorsConstructorDescriptionSpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression) Creates a newSpelCriteriafor the givenSpelExpression.SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression, org.springframework.expression.EvaluationContext context) Creates newSpelCriteria. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.expression.EvaluationContextorg.springframework.expression.spel.standard.SpelExpression
-
Constructor Details
-
SpelCriteria
public SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression) Creates a newSpelCriteriafor the givenSpelExpression.- Parameters:
expression- must not be null.
-
SpelCriteria
public SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression, org.springframework.expression.EvaluationContext context) Creates newSpelCriteria.- Parameters:
expression- must not be null.context- must not be null.
-
-
Method Details
-
getContext
public org.springframework.expression.EvaluationContext getContext()- Returns:
- will never be null.
-
getExpression
public org.springframework.expression.spel.standard.SpelExpression getExpression()- Returns:
- will never be null.
-