Contains classes that make up Cayenne generic event dispatch mechanism. The central class is EventManager that allows to completely decouple event senders from listeners. EventBridge allows to connect a network of EventManagers in a single "virtual" EventManager. This includes managers running in different JVMs.
Interface Summary Interface Description EventBridgeFactoryDefines a factory to dynamically create EventBridge instances. EventManagerThis class acts as bridge between an Object that wants to inform others about its current state or a change thereof (Publisher) and a list of objects interested in the Subject (Listeners).
Class Summary Class Description CayenneEventCommon superclass for events passed from the EventManager to Listeners; encapsulates optional event information. DefaultEventManagerA default implementation of
EventBridgeAn object that passes events between a local EventManager and some other event dispatch mechanism. EventManagerProvider EventSubjectThis class encapsulates the String that is used to identify the subject that a listener is interested in. NoopEventBridge NoopEventBridgeProvider NoopEventManager