org.oddjob.beanbus
Class BusListenerAdapter

java.lang.Object
  extended by org.oddjob.beanbus.BusListenerAdapter
All Implemented Interfaces:
EventListener, BusListener

public class BusListenerAdapter
extends Object
implements BusListener

Unimplemented methods for BusListener.

Author:
rob

Constructor Summary
BusListenerAdapter()
           
 
Method Summary
 void busCrashed(BusEvent event)
          Called if the bus has crashed.
 void busStarting(BusEvent event)
          The bus is starting.
 void busStopping(BusEvent event)
          The bus is stopping.
 void busStopRequested(BusEvent event)
           
 void busTerminated(BusEvent event)
          The bus has terminated.
 void tripBeginning(BusEvent event)
          Stage starting.
 void tripEnding(BusEvent event)
          Stage complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusListenerAdapter

public BusListenerAdapter()
Method Detail

busStarting

public void busStarting(BusEvent event)
                 throws BusCrashException
Description copied from interface: BusListener
The bus is starting. Called before any beans have gone anywhere.

Specified by:
busStarting in interface BusListener
Throws:
BusCrashException

tripBeginning

public void tripBeginning(BusEvent event)
                   throws BusCrashException
Description copied from interface: BusListener
Stage starting.

Specified by:
tripBeginning in interface BusListener
Throws:
BusCrashException

tripEnding

public void tripEnding(BusEvent event)
                throws BusCrashException
Description copied from interface: BusListener
Stage complete.

Specified by:
tripEnding in interface BusListener
Throws:
BusCrashException

busStopRequested

public void busStopRequested(BusEvent event)
Specified by:
busStopRequested in interface BusListener

busStopping

public void busStopping(BusEvent event)
                 throws BusCrashException
Description copied from interface: BusListener
The bus is stopping. Called when all the beans have arrived at their destination. This notification will only be received if the bus hasn't crashed. The bus can crash while stopping.

Specified by:
busStopping in interface BusListener
Throws:
BusCrashException

busCrashed

public void busCrashed(BusEvent event)
Description copied from interface: BusListener
Called if the bus has crashed. The bus can crash while starting, stopping and any time in between.

Specified by:
busCrashed in interface BusListener

busTerminated

public void busTerminated(BusEvent event)
Description copied from interface: BusListener
The bus has terminated. Called after either a busStopping or busCrashed notification. Always called.

Specified by:
busTerminated in interface BusListener