|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.common.events.MCREventManager
public class MCREventManager
Acts as a multiplexer to forward events that are created to all registered event handlers, in the order that is configured in mycore properties. For information how to configure, see MCREventHandler javadocs.
MCREventHandler,
MCREventHandlerBase| Field Summary | |
|---|---|
static boolean |
BACKWARD
Call event handlers in backward direction (delete) |
static boolean |
FORWARD
Call event handlers in forward direction (create, update) |
| Method Summary | |
|---|---|
void |
handleEvent(MCREvent evt)
Same as handleEvent( evt, MCREventManager.FORWARD ) |
void |
handleEvent(MCREvent evt,
boolean direction)
This method is called by the component that created the event and acts as a multiplexer that invokes all registered event handlers doHandleEvent methods. |
static MCREventManager |
instance()
The singleton manager instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean FORWARD
public static final boolean BACKWARD
| Method Detail |
|---|
public static MCREventManager instance()
public void handleEvent(MCREvent evt,
boolean direction)
evt - the event that happeneddirection - the order in which the event handlers are calledMCREventHandler.doHandleEvent(org.mycore.common.events.MCREvent),
MCREventHandlerBase
public void handleEvent(MCREvent evt)
throws MCRException
MCRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||