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