Uses of Interface
org.refcodes.eventbus.EventBusEventMatcher
-
Uses of EventBusEventMatcher in org.refcodes.eventbus
Modifier and TypeClassDescriptionprotected static class
protected static class
Modifier and TypeMethodDescriptionstatic <E extends EventBusEvent,
A>
EventBusEventMatcherEventBusSugar.actionEqualWith
(A aAction) Factory method to create an "EQUAL WITH" matcher for the given action compared with the action stored in theEventMetaData
.static EventBusEventMatcher
EventBusSugar.aliasEqualWith
(String aAlias) Factory method to create an "EQUAL WITH" matcher for the given name compared with the name stored in theEventMetaData
.static EventBusEventMatcher
EventBusSugar.and
(EventBusEventMatcher... aEventMatchers) Factory method to create an "AND" matcher for the given matchers.static EventBusEventMatcher
EventBusSugar.catchAll()
Catches all events, no matching is done.static EventBusEventMatcher
EventBusSugar.catchNone()
Catches no event, no matching is done.static EventBusEventMatcher
EventBusSugar.channelEqualWith
(String aChannel) Factory method to create an "EQUAL WITH" matcher for the given channel compared with the channel stored in theEventMetaData
.static EventBusEventMatcher
EventBusSugar.groupEqualWith
(String aGroup) Factory method to create an "EQUAL WITH" matcher for the given group compared with the group stored in theEventMetaData
.static EventBusEventMatcher
EventBusSugar.isAssignableFrom
(Class<?> aEventType) Factory method to create an event matcher by event type.static EventBusEventMatcher
EventBusSugar.or
(EventBusEventMatcher... aEventMatchers) Factory method to create an "OR" matcher for the given matchers.static <PT> EventBusEventMatcher
EventBusSugar.publisherIsAssignableFrom
(Class<? extends PT> aPublisherType) Factory method to create an event matcher by event publisher type.static EventBusEventMatcher
EventBusSugar.uidIdEqualWith
(String aUid) Factory method to create an "EQUAL WITH" matcher for the given UID compared with the UID stored in theEventMetaData
.Modifier and TypeMethodDescriptionstatic EventBusEventMatcher
EventBusSugar.and
(EventBusEventMatcher... aEventMatchers) Factory method to create an "AND" matcher for the given matchers.static EventBusEventMatcher
EventBusSugar.or
(EventBusEventMatcher... aEventMatchers) Factory method to create an "OR" matcher for the given matchers.<EVT extends EventBusEvent>
StringEventBus.subscribe
(Class<EVT> aEventType, EventBusEventMatcher aEventMatcher, org.refcodes.observer.Observer<EVT> aObserver) Subscribes a listener to the event bus.