Class SpelCriteria

java.lang.Object
org.springframework.data.keyvalue.core.SpelCriteria

public class SpelCriteria extends Object
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

    Constructors
    Constructor
    Description
    SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression)
    Creates a new SpelCriteria for the given SpelExpression.
    SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression, org.springframework.expression.EvaluationContext context)
    Creates new SpelCriteria.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.expression.EvaluationContext
     
    org.springframework.expression.spel.standard.SpelExpression
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpelCriteria

      public SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression)
      Creates a new SpelCriteria for the given SpelExpression.
      Parameters:
      expression - must not be null.
    • SpelCriteria

      public SpelCriteria(org.springframework.expression.spel.standard.SpelExpression expression, org.springframework.expression.EvaluationContext context)
      Creates new SpelCriteria.
      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.