org.jactr.core.event
Class ACTREventDispatcher<S,L>

java.lang.Object
  extended by org.jactr.core.event.ACTREventDispatcher<S,L>

public class ACTREventDispatcher<S,L>
extends java.lang.Object

class that handles the nitty gritty of tracking listeners, executors, and propogating that the firing events correctly

Author:
developer

Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
ACTREventDispatcher()
           
 
Method Summary
 void addListener(L listener, java.util.concurrent.Executor executor)
           
 void clear()
           
 void fire(IACTREvent<S,L> 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
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Constructor Detail

ACTREventDispatcher

public ACTREventDispatcher()
Method Detail

clear

public void clear()

addListener

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

removeListener

public void removeListener(L listener)

hasListeners

public boolean hasListeners()

fire

public void fire(IACTREvent<S,L> event)

getListeners

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