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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.expression.EvaluationContextcreateEvaluationContext(Object object, Class<?> targetClass, Method method, Object[] args) Create the suitableEvaluationContextfor 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 inOfflineMode.key()Methods inherited from class org.springframework.context.expression.CachedExpressionEvaluator
getExpression, getParameterNameDiscoverer, getParser, parseExpression
-
Constructor Details
-
ExpressionEvaluator
public ExpressionEvaluator()
-
-
Method Details
-
createEvaluationContext
public org.springframework.expression.EvaluationContext createEvaluationContext(Object object, Class<?> targetClass, Method method, Object[] args) Create the suitableEvaluationContextfor 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 inOfflineMode.key()
-