Clearspace API (1.7.0) Core Javadocs

com.jivesoftware.community.event
Class TagSetEventDispatcher

java.lang.Object
  extended by com.jivesoftware.community.event.TagSetEventDispatcher

public class TagSetEventDispatcher
extends java.lang.Object

Dispatcher for TagSetEvents. Register TagSetListeners at runtime using the addListener(TagSetListener) method, or add a child Jive Property to the key "eventListeners.TagSetListener" to register a listener that will persist across restarts.

For example, to register the com.acme.CustomTagSetListener 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.TagSetListener.customTagSetListener", "com.acme.CustomTagSetListener.class"); // now add it for this runtime instance TagSetEventDispatcher.addListener(new com.acme.CustomerTagSetListener()); .


Method Summary
 void addListener(TagSetListener listener)
           
static void destroy()
          Destroy dispatcher.
 void dispatchEvent(TagSetEvent event)
           
static TagSetEventDispatcher getInstance()
           
 void removeListener(TagSetListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TagSetEventDispatcher getInstance()

addListener

public void addListener(TagSetListener listener)

removeListener

public void removeListener(TagSetListener listener)

destroy

public static void destroy()
Destroy dispatcher. Intended to be used primarily during testing.


dispatchEvent

public void dispatchEvent(TagSetEvent event)

Clearspace Project Page

Copyright © 1999-2007 Jive Software.