Modifier and Type | Method | Description |
---|---|---|
static <E extends ApplicationEvent,A> |
ApplicationMatcherSugar.actionEqualWith(A aAction) |
Factory method to create an "EQUAL WITH" matcher for the given action
compared with the action stored in the
EventMetaData . |
static ApplicationMatcher |
ApplicationMatcherSugar.aliasEqualWith(String aAlias) |
Factory method to create an "EQUAL WITH" matcher for the given name
compared with the name stored in the
EventMetaData . |
static ApplicationMatcher |
ApplicationMatcherSugar.and(ApplicationMatcher... aEventMatchers) |
Factory method to create an "AND" matcher for the given matchers.
|
static ApplicationMatcher |
ApplicationMatcherSugar.catchAll() |
Catches all events, no matching is done.
|
static ApplicationMatcher |
ApplicationMatcherSugar.catchNone() |
Catches no event, no matching is done.
|
static ApplicationMatcher |
ApplicationMatcherSugar.channelEqualWith(String aChannel) |
Factory method to create an "EQUAL WITH" matcher for the given channel
compared with the channel stored in the
EventMetaData . |
static ApplicationMatcher |
ApplicationMatcherSugar.groupEqualWith(String aGroup) |
Factory method to create an "EQUAL WITH" matcher for the given group
compared with the group stored in the
EventMetaData . |
static ApplicationMatcher |
ApplicationMatcherSugar.isAssignableFrom(Class<?> aEventType) |
Factory method to create an event matcher by event type.
|
static ApplicationMatcher |
ApplicationMatcherSugar.or(ApplicationMatcher... aEventMatchers) |
Factory method to create an "OR" matcher for the given matchers.
|
static <E extends ApplicationEvent,PT> |
ApplicationMatcherSugar.publisherIsAssignableFrom(Class<? extends PT> aPublisherType) |
Factory method to create an event matcher by event publisher type.
|
static ApplicationMatcher |
ApplicationMatcherSugar.uidIdEqualWith(String aUid) |
Factory method to create an "EQUAL WITH" matcher for the given UID
compared with the UID stored in the
EventMetaData . |
Modifier and Type | Method | Description |
---|---|---|
static ApplicationMatcher |
ApplicationMatcherSugar.and(ApplicationMatcher... aEventMatchers) |
Factory method to create an "AND" matcher for the given matchers.
|
static ApplicationMatcher |
ApplicationMatcherSugar.or(ApplicationMatcher... aEventMatchers) |
Factory method to create an "OR" matcher for the given matchers.
|
default <EVT extends ApplicationEvent> |
ApplicationBus.subscribe(Class<EVT> aEventType,
ApplicationMatcher aEventMatcher,
org.refcodes.observer.Observer<EVT> aObserver) |
Copyright © 2018. All rights reserved.