com.jivesoftware.community.event
Class TrackbackEventDispatcher
java.lang.Object
com.jivesoftware.community.event.TrackbackEventDispatcher
public class TrackbackEventDispatcher
- extends java.lang.Object
Dispatcher for TrackbackEvents. Register TrackbackListeners at runtime using
the addListener(TrackbackListener) method, or add a child Jive Property to the key
"eventListeners.TrackbackListener" to register a listener that will persist across restarts.
For example, to register the com.acme.CustomTrackbackListener 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.TrackbackListener.customTrackbackListener",
"com.acme.CustomTrackbackListener.class");
// now add it for this runtime instance
TrackbackEventDispatcher.addListener(new com.acme.CustomerTrackbackListener());
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static TrackbackEventDispatcher getInstance()
addListener
public void addListener(TrackbackListener listener)
removeListener
public void removeListener(TrackbackListener listener)
destroy
public static void destroy()
- Destroy dispatcher. Intended to be used primarily during testing.
dispatchEvent
public void dispatchEvent(TrackbackEvent event)
Copyright © 1999-2007 Jive Software.