Package net.engio.mbassy.dispatch.el
Class ElFilter
java.lang.Object
net.engio.mbassy.dispatch.el.ElFilter
- All Implemented Interfaces:
IMessageFilter
A filter that will use a expression from the handler annotation and
parse it as EL.
Accepts a message if the associated EL expression evaluates to
true-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(Object message, SubscriptionContext context) Check whether the message matches some criteriastatic final javax.el.ExpressionFactoryprivate booleanevalExpression(String expression, StandardELResolutionContext resolutionContext, SubscriptionContext context, Object message) static final boolean
-
Constructor Details
-
ElFilter
public ElFilter()
-
-
Method Details
-
isELAvailable
public static final boolean isELAvailable() -
ELFactory
public static final javax.el.ExpressionFactory ELFactory() -
accepts
Description copied from interface:IMessageFilterCheck whether the message matches some criteria- Specified by:
acceptsin interfaceIMessageFilter- Parameters:
message- The message to be handled by the handlercontext- The context object containing a description of the message handler and the bus environment- Returns:
- true: if the message matches the criteria and should be delivered to the handler false: otherwise
-
evalExpression
private boolean evalExpression(String expression, StandardELResolutionContext resolutionContext, SubscriptionContext context, Object message)
-