class EventExpressionEvaluator extends CachedExpressionEvaluator
CachedExpressionEvaluator
CachedExpressionEvaluator.ExpressionKey
Modifier and Type | Field and Description |
---|---|
private java.util.Map<CachedExpressionEvaluator.ExpressionKey,Expression> |
conditionCache |
private java.util.Map<AnnotatedElementKey,java.lang.reflect.Method> |
targetMethodCache |
Constructor and Description |
---|
EventExpressionEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
condition(java.lang.String conditionExpression,
AnnotatedElementKey elementKey,
EvaluationContext evalContext)
Specify if the condition defined by the specified expression matches.
|
EvaluationContext |
createEvaluationContext(ApplicationEvent event,
java.lang.Class<?> targetClass,
java.lang.reflect.Method method,
java.lang.Object[] args,
BeanFactory beanFactory)
Create the suitable
EvaluationContext for the specified event handling
on the specified method. |
private java.lang.reflect.Method |
getTargetMethod(java.lang.Class<?> targetClass,
java.lang.reflect.Method method) |
getExpression, getParameterNameDiscoverer, getParser
private final java.util.Map<CachedExpressionEvaluator.ExpressionKey,Expression> conditionCache
private final java.util.Map<AnnotatedElementKey,java.lang.reflect.Method> targetMethodCache
public EvaluationContext createEvaluationContext(ApplicationEvent event, java.lang.Class<?> targetClass, java.lang.reflect.Method method, java.lang.Object[] args, BeanFactory beanFactory)
EvaluationContext
for the specified event handling
on the specified method.public boolean condition(java.lang.String conditionExpression, AnnotatedElementKey elementKey, EvaluationContext evalContext)
private java.lang.reflect.Method getTargetMethod(java.lang.Class<?> targetClass, java.lang.reflect.Method method)