public static final class Filters.RejectSubtypes extends Object implements IMessageFilter
rejectSubtypes = true
in the @Handler annotationConstructor and Description |
---|
RejectSubtypes() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Object event,
SubscriptionContext context)
Check whether the message matches some criteria
|
public boolean accepts(Object event, SubscriptionContext context)
IMessageFilter
accepts
in interface IMessageFilter
event
- The message to be handled by the handlercontext
- The context object containing a description of the message handler and the bus environmentCopyright © 2018. All rights reserved.