public interface EventBus<E extends Event<?>,O extends Observer<E>,EM extends 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).
isMatching
publishEvent
subscribe, unsubscribeAll
hasHandle, lookupHandle, removeHandle
Copyright © 2016. All rights reserved.