public interface EventBusObservable<E extends Event<?>,O extends Observer<E>,EM extends EventMatcher<E>,H> extends HandleLookup<H,O>
Observablepart of the
EventBusprovides means to register
TIPP: In order to distinguish
MetaDataEventImpl instances from each
other, create an actions enumeration, enumerating the various event actions
you support. Pass the actual action you intend to notify upon to the
according constructor, as an
Observer you may use the declarative
EventMatcherByDeclaration.actionEqualWith(Object) to test
whether your action was notified (or a simple switch case statement).
|Modifier and Type||Method and Description|
Subscribes a listener to the event bus.
Unsubscribes all registrations to a specific listener, even if that listener is involved in several subscriptions.
void unsubscribeAll(O aObserver)
Copyright © 2016. All rights reserved.