Class MUCServicePropertyEventDispatcher
- java.lang.Object
-
- org.jivesoftware.openfire.muc.spi.MUCServicePropertyEventDispatcher
-
public class MUCServicePropertyEventDispatcher extends Object
Dispatches property events. Each event has atypeand optional parameters, as follows:The extra params for each event type Event Type Extra Params property_setA param named valuethat has the value of the property set.property_deletedNone - Author:
- Daniel Henninger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMUCServicePropertyEventDispatcher.EventTypeRepresents valid event types.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddListener(MUCServicePropertyEventListener listener)Registers a listener to receive events.static voiddispatchEvent(String service, String property, MUCServicePropertyEventDispatcher.EventType eventType, Map<String,Object> params)Dispatches an event to all listeners.static voidremoveListener(MUCServicePropertyEventListener listener)Unregisters a listener to receive events.
-
-
-
Method Detail
-
addListener
public static void addListener(MUCServicePropertyEventListener listener)
Registers a listener to receive events.- Parameters:
listener- the listener.
-
removeListener
public static void removeListener(MUCServicePropertyEventListener listener)
Unregisters a listener to receive events.- Parameters:
listener- the listener.
-
dispatchEvent
public static void dispatchEvent(String service, String property, MUCServicePropertyEventDispatcher.EventType eventType, Map<String,Object> params)
Dispatches an event to all listeners.- Parameters:
service- the subdomain of the MUC service the property is set for.property- the property.eventType- the event type.params- event parameters.
-
-