|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uplanet.lucy.server.portalserver.ServerEventDispatcher
@Scriptable public final class ServerEventDispatcher
A dispatcher for server events.
The dispatcher does not hold strong references to the registered listeners, so the caller must control the lifecycle of the listener instances.
Field Summary | |
---|---|
static java.lang.String |
SYSPROP_LOG_SERVER_EVENTS
|
Method Summary | |
---|---|
void |
addListener(de.uplanet.lucy.server.events.IServerEventListener p_listener)
Register a listener for server events. |
void |
dispatch(IServerEvent p_evt)
Notifies all registered listeners about the given event. |
static ServerEventDispatcher |
getInstance()
Get the one and only instance of this event dispatcher. |
boolean |
isLogEvents()
|
void |
setLogEvents(boolean p_bLogEvents)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@SystemProperty(defaultValue="false") public static final java.lang.String SYSPROP_LOG_SERVER_EVENTS
Method Detail |
---|
public static ServerEventDispatcher getInstance()
public boolean isLogEvents()
public void setLogEvents(boolean p_bLogEvents)
public void addListener(de.uplanet.lucy.server.events.IServerEventListener p_listener)
p_listener
- The listener to be addedpublic void dispatch(IServerEvent p_evt)
The calls to the listeners are synchronous and synchronized.
p_evt
- The event to be dispatched.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |