org.jivesoftware.spark
Class DataManager

java.lang.Object
  extended by org.jivesoftware.spark.DataManager

public class DataManager
extends java.lang.Object

Allows a mechanism to associated data with chat rooms.


Method Summary
 void addMetadataListener(MetadataListener listener)
           
static DataManager getInstance()
          Returns the singleton instance of DataManager, creating it if necessary.
 void removeMetadataListener(MetadataListener listener)
           
 void setMetadataForRoom(ChatRoom room, java.util.Map map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DataManager getInstance()
Returns the singleton instance of DataManager, creating it if necessary.

Returns:
the singleton instance of DataManager

addMetadataListener

public void addMetadataListener(MetadataListener listener)

removeMetadataListener

public void removeMetadataListener(MetadataListener listener)

setMetadataForRoom

public void setMetadataForRoom(ChatRoom room,
                               java.util.Map map)