Class MUCServicePropertyEventDispatcher
java.lang.Object
org.jivesoftware.openfire.muc.spi.MUCServicePropertyEventDispatcher
Dispatches property events. Each event has a
type
and optional parameters, as follows:
| Event Type | Extra Params |
|---|---|
property_set | A param named value that
has the value of the property set. |
property_deleted | None |
- Author:
- Daniel Henninger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents valid event types. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidUnregisters a listener to receive events.
-
Method Details
-
addListener
Registers a listener to receive events.- Parameters:
listener- the listener.
-
removeListener
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.
-