org.oddjob.beanbus.mega
Class BusConductorFilter

java.lang.Object
  extended by org.oddjob.beanbus.mega.BusConductorFilter
All Implemented Interfaces:
BusConductor

public class BusConductorFilter
extends Object
implements BusConductor


Constructor Summary
BusConductorFilter(BusConductor original)
           
 
Method Summary
 void addBusListener(BusListener listener)
          Add a listener.
protected  void busCrashed(BusEvent event, BusListener listener)
           
protected  void busStarting(BusEvent event, BusListener listener)
           
protected  void busStopping(BusEvent event, BusListener listener)
           
protected  void busStopRequested(BusEvent event, BusListener listener)
           
protected  void busTerminated(BusEvent event, BusListener listener)
           
 void cleanBus()
          Cleaning the bus will cause the trip to end and a new one to begin.
 void removeBusListener(BusListener listener)
          Remove the listener.
 void requestBusStop()
          Request that the bus stop.
protected  void tripBeginning(BusEvent event, BusListener listener)
           
protected  void tripEnding(BusEvent event, BusListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusConductorFilter

public BusConductorFilter(BusConductor original)
Method Detail

busStarting

protected void busStarting(BusEvent event,
                           BusListener listener)
                    throws BusCrashException
Throws:
BusCrashException

tripBeginning

protected void tripBeginning(BusEvent event,
                             BusListener listener)
                      throws BusCrashException
Throws:
BusCrashException

tripEnding

protected void tripEnding(BusEvent event,
                          BusListener listener)
                   throws BusCrashException
Throws:
BusCrashException

busStopRequested

protected void busStopRequested(BusEvent event,
                                BusListener listener)

busStopping

protected void busStopping(BusEvent event,
                           BusListener listener)
                    throws BusCrashException
Throws:
BusCrashException

busCrashed

protected void busCrashed(BusEvent event,
                          BusListener listener)

busTerminated

protected void busTerminated(BusEvent event,
                             BusListener listener)

addBusListener

public void addBusListener(BusListener listener)
Description copied from interface: BusConductor
Add a listener.

Specified by:
addBusListener in interface BusConductor
Parameters:
listener - The listener.

removeBusListener

public void removeBusListener(BusListener listener)
Description copied from interface: BusConductor
Remove the listener.

Specified by:
removeBusListener in interface BusConductor
Parameters:
listener - The listener.

cleanBus

public void cleanBus()
              throws BusCrashException
Description copied from interface: BusConductor
Cleaning the bus will cause the trip to end and a new one to begin. Intended for components such as Batcher so that they can flush the bus.

Specified by:
cleanBus in interface BusConductor
Throws:
BusCrashException

requestBusStop

public void requestBusStop()
Description copied from interface: BusConductor
Request that the bus stop. This may, and probably will, be called asynchronously.

Specified by:
requestBusStop in interface BusConductor