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