public interface EventBus<E extends org.refcodes.observer.Event<?>,O extends org.refcodes.observer.Observer<E>,EM extends org.refcodes.observer.EventMatcher<E>,H> extends EventBusPublisher<E>, EventBusObservable<E,O,EM,H>
EventBus
is the (virtual) machine wide manager for ActionEvent
handling.
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
method EventMatcherByDeclaration.actionEqualWith(Object)
to test
whether your action was notified (or a simple switch case statement).
subscribe, unsubscribeAll
Copyright © 2016. All rights reserved.