|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.event.JaspiraEventMgr
public final class JaspiraEventMgr
The event manager manages the of global event processing.
An event module (EventModule) can designate itself as global event handler.
Global event handlers can handle events independently of the plugin tree-based
event handling before or after the actual tree-related event handling is performed.
The event manager maintains a list of events that should be handled globally and
provides methods that perform the event processing for these types of events.
The manager is a singleton class that is intended to be used by plugins internally only.
In order to fire an event, use either the Plugin.fireEvent(JaspiraEvent) method or one of the
fireGlobalEvent(JaspiraEvent) convenience methods provided by this class.
| Field Summary | |
|---|---|
static java.util.Comparator |
moduleComparator
Event module comparator. |
| Method Summary | |
|---|---|
static boolean |
fireGlobalEvent(JaspiraEvent je)
Fires the given event using the application itself as startingpoint. |
static boolean |
fireGlobalEvent(java.lang.String eventname)
Creates a new client event with the given name and fires it using the application itself as startingpoint. |
static boolean |
fireGlobalEvent(java.lang.String eventname,
java.lang.Object data)
Creates a new client event with the given name and data and fires it using the application itself as startingpoint. |
static JaspiraEventMgr |
getInstance()
Returns the event manager instance of the system. |
boolean |
postHandleEvent(JaspiraEvent je)
Performs the event handling for global events that should be handled after the actual event handling of the plugin. |
boolean |
preHandleEvent(JaspiraEvent je)
Performs the event handling for global events that should be handled before the actual event handling of the plugin. |
void |
registerModule(EventModule module)
Registers a global event module. |
void |
unregisterModule(EventModule module)
Unregisters a global event module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.Comparator moduleComparator
| Method Detail |
|---|
public static JaspiraEventMgr getInstance()
public static boolean fireGlobalEvent(JaspiraEvent je)
je - The event to fire
public static boolean fireGlobalEvent(java.lang.String eventname)
eventname - The name for the event
public static boolean fireGlobalEvent(java.lang.String eventname,
java.lang.Object data)
eventname - The name for the eventdata - The dataobject for the event
public boolean preHandleEvent(JaspiraEvent je)
AbstractPlugin class only.
je - EVent to handle
public boolean postHandleEvent(JaspiraEvent je)
AbstractPlugin class only.
je - EVent to handle
public void registerModule(EventModule module)
public void unregisterModule(EventModule module)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||