gov.aps.jca.event
Class DirectEventDispatcher

java.lang.Object
  |
  +--gov.aps.jca.event.AbstractEventDispatcher
        |
        +--gov.aps.jca.event.DirectEventDispatcher
All Implemented Interfaces:
EventDispatcher

public class DirectEventDispatcher
extends AbstractEventDispatcher

This EventDispatcher will forward all events directly to the listeners. The listeners will be called by the underlying JCA callback's thread. JCA methods call (Context, Channel, Monitor) are not allowed within the listener's callback methods and could result in an unpredictable behavior. Listener's method should delegate all JCA calls to another thread.

Version:
1.0
Author:
Eric Boucher

Constructor Summary
DirectEventDispatcher()
           
 
Method Summary
 void dispatch(AccessRightsEvent ev, java.util.List listeners)
           
 void dispatch(ConnectionEvent ev, java.util.List listeners)
           
 void dispatch(ContextExceptionEvent ev, java.util.List listeners)
           
 void dispatch(ContextMessageEvent ev, java.util.List listeners)
           
 void dispatch(GetEvent ev, java.util.List listeners)
           
 void dispatch(MonitorEvent ev, java.util.List listeners)
           
 void dispatch(PutEvent ev, java.util.List listeners)
           
 
Methods inherited from class gov.aps.jca.event.AbstractEventDispatcher
dispatch, dispatch, dispatch, dispatch, dispatch, dispatch, dispatch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectEventDispatcher

public DirectEventDispatcher()
Method Detail

dispatch

public void dispatch(ContextMessageEvent ev,
                     java.util.List listeners)

dispatch

public void dispatch(ContextExceptionEvent ev,
                     java.util.List listeners)

dispatch

public void dispatch(ConnectionEvent ev,
                     java.util.List listeners)

dispatch

public void dispatch(AccessRightsEvent ev,
                     java.util.List listeners)

dispatch

public void dispatch(MonitorEvent ev,
                     java.util.List listeners)

dispatch

public void dispatch(GetEvent ev,
                     java.util.List listeners)

dispatch

public void dispatch(PutEvent ev,
                     java.util.List listeners)