Package org.apache.cayenne.event
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 EventBridgeFactory Defines a factory to dynamically create EventBridge instances.EventManager This 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 CayenneEvent Common superclass for events passed from the EventManager to Listeners; encapsulates optional event information.DefaultEventManager A default implementation ofEventManager
.EventBridge An object that passes events between a local EventManager and some other event dispatch mechanism.EventManagerProvider EventSubject This class encapsulates the String that is used to identify the subject that a listener is interested in.NoopEventBridge NoopEventBridgeProvider NoopEventManager