com.jivesoftware.community.event
Class TaskEventDispatcher
java.lang.Object
com.jivesoftware.community.event.TaskEventDispatcher
public class TaskEventDispatcher
- extends Object
Dispatcher for TaskEvents. Register TaskListeners at runtime using
the addListener(TaskListener) method, or add a child Jive Property to the key
"eventListeners.TaskListener" to register a listener that will persist across restarts.
For example, to register the com.acme.CustomTaskListener class as a persistent listener
the following code could be used:
// add persistent key to have the listener loaded and registered automatically at startup
JiveGlobals.setJiveProperty("eventListeners.TaskListener.customTaskListener",
"com.acme.CustomTaskListener.class");
// now add it for this runtime instance
ScheduledTaskEventDispatcher.addListener(new com.acme.CustomerTaskListener());
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static TaskEventDispatcher getInstance()
addListener
public void addListener(TaskListener listener)
removeListener
public void removeListener(TaskListener listener)
destroy
public static void destroy()
- Destroy dispatcher. Intended to be used primarily during testing.
dispatchEvent
public void dispatchEvent(com.jivesoftware.community.JiveEvent event)
Copyright © 1999-2007 Jive Software.