org.oddjob.beanbus
Class SimpleBus<T>
java.lang.Object
org.oddjob.beanbus.SimpleBus<T>
- All Implemented Interfaces:
- Runnable, BeanBus, BusNotifier, StageNotifier
public class SimpleBus<T>
- extends Object
- implements BeanBus
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleBus
public SimpleBus()
run
public void run()
- Specified by:
run in interface Runnable
stop
public void stop()
- Specified by:
stop in interface BeanBus
getDriver
public Driver<? extends T> getDriver()
setDriver
public void setDriver(Driver<? extends T> from)
addBusListener
public void addBusListener(BusListener listener)
- Specified by:
addBusListener in interface BusNotifier
removeBusListener
public void removeBusListener(BusListener listener)
- Specified by:
removeBusListener in interface BusNotifier
addStageListener
public void addStageListener(StageListener listener)
- Specified by:
addStageListener in interface StageNotifier
removeStageListener
public void removeStageListener(StageListener listener)
- Specified by:
removeStageListener in interface StageNotifier
fireBusStarting
protected void fireBusStarting()
throws CrashBusException
- Throws:
CrashBusException
fireBusStopping
protected void fireBusStopping()
throws CrashBusException
- Throws:
CrashBusException
fireBusTerminated
protected void fireBusTerminated()
fireBusCrashed
protected void fireBusCrashed(BusException e)
getConductor
public StageNotifier getConductor()
setConductor
public void setConductor(StageNotifier conductor)