|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.beanbus.AbstractBusComponent<T>
T
- The type of beans on the bus.public abstract class AbstractBusComponent<T>
A base class for Jobs and Services that provide an BeanBus
.
Implementations must ensure #startBus() and {@link stopBus()} are called and must provide a {@link #stopTheBus()} method.
Constructor Summary | |
---|---|
AbstractBusComponent()
|
Method Summary | |
---|---|
protected void |
accept(T bean)
|
SimpleBusService |
getServices()
Provider the services. |
Collection<? super T> |
getTo()
|
protected void |
requestBusStop()
|
void |
setTo(Collection<? super T> to)
Set the destination. |
protected void |
startBus()
|
protected void |
stopBus()
|
protected abstract void |
stopTheBus()
Implementation override this to perform the action of stopping the bus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBusComponent()
Method Detail |
---|
protected void startBus() throws BusCrashException
BusCrashException
protected void accept(T bean) throws BusCrashException
BusCrashException
protected void stopBus() throws BusCrashException
BusCrashException
protected void requestBusStop()
protected abstract void stopTheBus()
public SimpleBusService getServices()
ServiceProvider
getServices
in interface ServiceProvider
getServices
in interface BusServiceProvider
public void setTo(Collection<? super T> to)
setTo
in interface Outbound<T>
to
- public Collection<? super T> getTo()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |