Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community.event
Class ProfileSearchIndexEventDispatcher

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

public class ProfileSearchIndexEventDispatcher
extends Object

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

For example, to register the com.acme.CustomProfileSearchIndexListener 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.ProfileSearchIndexListener.customProfileSearchIndexListener", "com.acme.CustomProfileSearchIndexListener.class"); // now add it for this runtime instance ProfileSearchIndexEventDispatcher.addListener(new com.acme.CustomerProfileSearchIndexListener());


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

Method Detail

getInstance

public static ProfileSearchIndexEventDispatcher getInstance()

addListener

public void addListener(ProfileSearchIndexListener listener)

removeListener

public void removeListener(ProfileSearchIndexListener listener)

destroy

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


dispatchEvent

public void dispatchEvent(ProfileSearchIndexEvent event)

Clearspace Project Page

Copyright © 1999-2007 Jive Software.