org.commonreality.event
Class EventDispatcher<L extends ICommonRealityListener,E extends ICommonRealityEvent<L>>

java.lang.Object
  extended by org.commonreality.event.EventDispatcher<L,E>

public class EventDispatcher<L extends ICommonRealityListener,E extends ICommonRealityEvent<L>>
extends java.lang.Object

Author:
developer

Constructor Summary
EventDispatcher()
           
 
Method Summary
 void addListener(L listener, java.util.concurrent.Executor executor)
           
 void fire(E event)
           
 java.util.Collection<L> getListeners()
           
 boolean hasListeners()
           
 void removeListener(L listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDispatcher

public EventDispatcher()
Method Detail

hasListeners

public boolean hasListeners()

addListener

public void addListener(L listener,
                        java.util.concurrent.Executor executor)

removeListener

public void removeListener(L listener)

getListeners

public java.util.Collection<L> getListeners()

fire

public void fire(E event)