|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.core.event.EventManager
This class manages all event related stuff. it is the place to register event brokers, and it will propagate all events. The class is set up as a singleton, with lazy instantiation. When the manager is instantiated, event brokers are added for Event, NodeEvent and RelationEvent
| Field Summary | |
static String |
DTD_EVENTMANAGER
|
static String |
PUBLIC_ID_EVENTMANAGER
|
protected ResourceWatcher |
watcher
|
| Method Summary | |
void |
addEventBroker(AbstractEventBroker broker)
add an event broker for a specific type of event |
void |
addEventListener(EventListener listener)
|
protected void |
configure(String resource)
|
static EventManager |
getInstance()
use this metod to get an instance of the event manager |
long |
getNumberOfPropagatedEvents()
|
long |
getPropagationCost()
|
void |
propagateEvent(Event event)
This method will propagate the given event to all the aproprate listeners. |
void |
removeEventBroker(AbstractEventBroker broker)
remove a broker for a specific type of event |
void |
removeEventListener(EventListener listener)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PUBLIC_ID_EVENTMANAGER
public static final String DTD_EVENTMANAGER
protected ResourceWatcher watcher
| Method Detail |
public static EventManager getInstance()
protected void configure(String resource)
public void addEventBroker(AbstractEventBroker broker)
broker - public void removeEventBroker(AbstractEventBroker broker)
broker - public void addEventListener(EventListener listener)
listener - public void removeEventListener(EventListener listener)
listener - public void propagateEvent(Event event)
event - AbstractEventBrokerpublic long getNumberOfPropagatedEvents()
public long getPropagationCost()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||