Clearspace API (1.10.16) Core Javadocs

com.jivesoftware.spi
Class ServiceEventDispatcher<T extends java.lang.Enum<?>,O>

java.lang.Object
  extended by com.jivesoftware.spi.ServiceEventDispatcher<T,O>
All Implemented Interfaces:
ServiceEventSource<T,O>

public abstract class ServiceEventDispatcher<T extends java.lang.Enum<?>,O>
extends java.lang.Object
implements ServiceEventSource<T,O>

Base class provides the basic event notification infrastucture.


Constructor Summary
ServiceEventDispatcher()
           
 
Method Summary
 void addListener(ServiceEventListener<T,O> listener)
          Register a listener
 void dispatchEvent(ServiceEvent<T,O> e)
          Send events to registered listeners.
 void removeListener(ServiceEventListener<T,O> listener)
          Un-register a listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceEventDispatcher

public ServiceEventDispatcher()
Method Detail

addListener

public void addListener(ServiceEventListener<T,O> listener)
Register a listener

Specified by:
addListener in interface ServiceEventSource<T extends java.lang.Enum<?>,O>
Parameters:
listener -

removeListener

public void removeListener(ServiceEventListener<T,O> listener)
Un-register a listener

Specified by:
removeListener in interface ServiceEventSource<T extends java.lang.Enum<?>,O>
Parameters:
listener - listener

dispatchEvent

public void dispatchEvent(ServiceEvent<T,O> e)
Send events to registered listeners.

Parameters:
e - event to dispatch

Clearspace Project Page

Copyright © 1999-2007 Jive Software.