Class ExpressionEvaluator

java.lang.Object
org.springframework.context.expression.CachedExpressionEvaluator
pl.maciejkopec.offlinemode.expression.ExpressionEvaluator

public class ExpressionEvaluator extends org.springframework.context.expression.CachedExpressionEvaluator
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.context.expression.CachedExpressionEvaluator

    org.springframework.context.expression.CachedExpressionEvaluator.ExpressionKey
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.expression.EvaluationContext
    createEvaluationContext(Object object, Class<?> targetClass, Method method, Object[] args)
    Create the suitable EvaluationContext for the offline mode handling on the specified method.
    key(String keyExpression, org.springframework.context.expression.AnnotatedElementKey methodKey, org.springframework.expression.EvaluationContext evalContext)
    Generate a key based on SPeL expression passed in OfflineMode.key()

    Methods inherited from class org.springframework.context.expression.CachedExpressionEvaluator

    getExpression, getParameterNameDiscoverer, getParser, parseExpression

    Methods inherited from class java.lang.Object

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

    • ExpressionEvaluator

      public ExpressionEvaluator()
  • Method Details

    • createEvaluationContext

      public org.springframework.expression.EvaluationContext createEvaluationContext(Object object, Class<?> targetClass, Method method, Object[] args)
      Create the suitable EvaluationContext for the offline mode handling on the specified method.
    • key

      public Object key(String keyExpression, org.springframework.context.expression.AnnotatedElementKey methodKey, org.springframework.expression.EvaluationContext evalContext)
      Generate a key based on SPeL expression passed in OfflineMode.key()