Wildfire 3.2.4 Javadoc

org.jivesoftware.wildfire.event
Class SessionEventDispatcher

java.lang.Object
  extended by org.jivesoftware.wildfire.event.SessionEventDispatcher

public class SessionEventDispatcher
extends Object

Dispatches session events. Each event has a type

Author:
Matt Tucker

Nested Class Summary
static class SessionEventDispatcher.EventType
          Represents valid event types.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Wildfire 3.2.4 Javadoc

Copyright © 2003-2007 Jive Software.