Top Description Fields Constructors Methods
org.springframework.context.event

pack-priv Class EventExpressionEvaluator

extends CachedExpressionEvaluator
Class Inheritance
Imports
java.lang.reflect.Method, java.util.Map, java.util.concurrent.ConcurrentHashMap, org.springframework.context.ApplicationEvent, org.springframework.context.expression.AnnotatedElementKey, .CachedExpressionEvaluator, .MethodBasedEvaluationContext, org.springframework.expression.EvaluationContext, .Expression, org.springframework.expression.spel.support.StandardEvaluationContext

Utility class for handling SpEL expression parsing for application events.

Meant to be used as a reusable, thread-safe component.

Author
Stephane Nicoll
Since
4.2
See Also
CachedExpressionEvaluator

Field Summary

Modifier and TypeField and Description
private final Map<CachedExpressionEvaluator.ExpressionKey, Expression>
private final StandardEvaluationContext

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
condition(String conditionExpression, ApplicationEvent event, Method targetMethod, AnnotatedElementKey methodKey, Object[] args)

Determine if the condition defined by the specified expression evaluates to true.

private EvaluationContext
Inherited from org.springframework.context.expression.CachedExpressionEvaluator:
getExpressiongetParameterNameDiscoverergetParserparseExpression

Field Detail

conditionCacheback to summary
private final Map<CachedExpressionEvaluator.ExpressionKey, Expression> conditionCache
originalEvaluationContextback to summary
private final StandardEvaluationContext originalEvaluationContext

Constructor Detail

EventExpressionEvaluatorback to summary
pack-priv EventExpressionEvaluator(StandardEvaluationContext originalEvaluationContext)

Method Detail

conditionback to summary
public boolean condition(String conditionExpression, ApplicationEvent event, Method targetMethod, AnnotatedElementKey methodKey, Object[] args)

Determine if the condition defined by the specified expression evaluates to true.

createEvaluationContextback to summary
private EvaluationContext createEvaluationContext(EventExpressionRootObject rootObject, Method method, Object[] args)