org.oddjob.beanbus
Class AbstractBusConductor
java.lang.Object
org.oddjob.beanbus.AbstractBusConductor
- All Implemented Interfaces:
- BusConductor
- Direct Known Subclasses:
- StatefulBusConductorAdapter
public abstract class AbstractBusConductor
- extends Object
- implements BusConductor
Base class for BusConductor
s. Provides methods for firing
events.
- Author:
- rob
AbstractBusConductor
public AbstractBusConductor()
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.
fireBusStarting
protected void fireBusStarting()
throws BusCrashException
- Throws:
BusCrashException
fireTripBeginning
protected void fireTripBeginning()
throws BusCrashException
- Throws:
BusCrashException
fireTripEnding
protected void fireTripEnding()
throws BusCrashException
- Throws:
BusCrashException
fireBusStopRequested
protected void fireBusStopRequested(boolean started)
fireBusStopping
protected void fireBusStopping()
throws BusCrashException
- Throws:
BusCrashException
fireBusTerminated
protected void fireBusTerminated()
fireBusCrashed
protected void fireBusCrashed(BusPhase phase,
Exception e)
toString
public abstract String toString()
- Overrides:
toString
in class Object