Modifier and Type | Interface | Description |
---|---|---|
interface |
ObserverDescriptor<E extends GenericEvent<?>,O extends Observer<E>,EM extends EventMatcher<E>> |
This
ObserverDescriptor describes the Observer , i.e. in some
cases an Observer requires an EventMatcher which determines
which GenericActionEvent instances to pass to the Observer . |
class |
ObserverDescriptorImpl<E extends GenericEvent<?>,O extends Observer<E>,EM extends EventMatcher<E>> |
As a descriptor describes something fixed, this class is immutable in the
sense that there are no setters for the attributes.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
MetaDataEventMatcher<E extends GenericMetaDataEvent<?,?>> |
This interface typifies the
Matcher interface for the usage with
GenericMetaDataEvent instances. |
Modifier and Type | Method | Description |
---|---|---|
static <E extends GenericActionMetaDataEvent<A,?,?>,A> |
EventMatcherSugar.actionEqualWith(A aAction) |
Factory method to create an "EQUAL WITH" matcher for the given action
compared with the action stored in the
EventMetaData . |
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.and(EventMatcher<E>... aEventMatchers) |
Factory method to create an "AND" matcher for the given matchers.
|
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.catchAll() |
Catches all events, no matching is done.
|
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.catchNone() |
Catches no event, no matching is done.
|
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.groupEqualWith(String aGroup) |
Factory method to create an "EQUAL WITH" matcher for the given group
compared with the group stored in the
EventMetaData . |
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.isAssignableFrom(Class<?> aEventType) |
Factory method to create an event matcher by event type.
|
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.nameEqualWith(String aAlias) |
Factory method to create an "EQUAL WITH" matcher for the given name
compared with the name stored in the
EventMetaData . |
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.or(EventMatcher<E>... aEventMatchers) |
Factory method to create an "OR" matcher for the given matchers.
|
static <E extends GenericMetaDataEvent<?,?>,PT> |
EventMatcherSugar.publisherIsAssignableFrom(Class<? extends PT> aPublisherType) |
Factory method to create an event matcher by event publisher type.
|
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.universalIdEqualWith(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 <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.and(EventMatcher<E>... aEventMatchers) |
Factory method to create an "AND" matcher for the given matchers.
|
static <E extends GenericMetaDataEvent<?,?>> |
EventMatcherSugar.or(EventMatcher<E>... aEventMatchers) |
Factory method to create an "OR" matcher for the given matchers.
|
Copyright © 2018. All rights reserved.