Package org.jivesoftware.openfire.event
Class ServerSessionEventDispatcher
- java.lang.Object
-
- org.jivesoftware.openfire.event.ServerSessionEventDispatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerSessionEventDispatcher.EventType
Represents valid event types.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addListener(ServerSessionEventListener listener)
Registers a listener to receive events.static void
dispatchEvent(Session session, ServerSessionEventDispatcher.EventType eventType)
Dispatches an event to all listeners.static void
removeListener(ServerSessionEventListener listener)
Unregisters a listener to receive events.
-
-
-
Method Detail
-
addListener
public static void addListener(ServerSessionEventListener listener)
Registers a listener to receive events.- Parameters:
listener
- the listener.
-
removeListener
public static void removeListener(ServerSessionEventListener listener)
Unregisters a listener to receive events.- Parameters:
listener
- the listener.
-
dispatchEvent
public static void dispatchEvent(Session session, ServerSessionEventDispatcher.EventType eventType)
Dispatches an event to all listeners.- Parameters:
session
- the session.eventType
- the event type.
-
-