Class SessionEventDispatcher


  • public class SessionEventDispatcher
    extends Object
    Dispatches session events. Each event has a type
    Author:
    Matt Tucker
    • 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.