|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.StructuralJob<Object>
org.oddjob.beanbus.mega.MegaBeanBus
public class MegaBeanBus
BeanBus
.
A Bean Bus is an assembly of Collection
s.
<oddjob> <job> <bean class="org.oddjob.beanbus.mega.MegaBeanBus" id="bus"> <parts> <bus:iterable-driver xmlns:bus="oddjob:beanbus"> <beans> <list> <values> <value value="Apple"/> <value value="Orange"/> <value value="Pear"/> </values> </list> </beans> </bus:iterable-driver> <bus:bean-capture id="list" xmlns:bus="oddjob:beanbus"/> </parts> </bean> </job> </oddjob>
Field Summary |
---|
Fields inherited from class org.oddjob.framework.StructuralJob |
---|
childHelper, childStateReflector, stateHandler, stop, structuralState |
Fields inherited from class org.oddjob.framework.BaseComponent |
---|
iconHelper |
Constructor Summary | |
---|---|
MegaBeanBus()
Only constructor. |
Method Summary | |
---|---|
void |
addOwnerStateListener(OwnerStateListener listener)
Add a listener. |
protected void |
execute()
Execute this job. |
BusConductor |
getBusConductor()
|
protected StateOperator |
getInitialStateOp()
Subclasses must provide the StateOperator that will decide
how to evaluate the children's state. |
BusService |
getServices()
Provider the services. |
boolean |
isNoAutoLink()
|
protected void |
onReset()
Allow sub classes to do something on reset. |
ConfigurationSession |
provideConfigurationSession()
Provide a ConfigurationSession . |
void |
removeOwnerStateListener(OwnerStateListener listener)
Remove a listener. |
DesignFactory |
rootDesignFactory()
Get the design factory for the configuration. |
ArooaElement |
rootElement()
Get the root element. |
void |
setArooaContext(ArooaContext context)
|
void |
setBusConductor(BusConductor busConductor)
|
void |
setNoAutoLink(boolean noAutoLink)
|
void |
setParts(int index,
Object child)
Add a child. |
Methods inherited from class org.oddjob.framework.StructuralJob |
---|
addStructuralListener, fireDestroyedState, force, getStateChanger, hardReset, isStop, onDestroy, onStop, removeStructuralListener, run, softReset, startChildStateReflector, stateHandler, stop |
Methods inherited from class org.oddjob.framework.BasePrimary |
---|
configure, getName, logger, logger, loggerName, save, setName, toString |
Methods inherited from class org.oddjob.framework.BaseComponent |
---|
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.oddjob.Stateful |
---|
addStateListener, lastStateEvent, removeStateListener |
Constructor Detail |
---|
public MegaBeanBus()
Method Detail |
---|
public void setArooaContext(ArooaContext context)
setArooaContext
in interface ArooaContextAware
setArooaContext
in class BaseComponent
public ConfigurationSession provideConfigurationSession()
ConfigurationOwner
ConfigurationSession
.
provideConfigurationSession
in interface ConfigurationOwner
ConfigurationSession
. My be null if no session is available.public void addOwnerStateListener(OwnerStateListener listener)
ConfigurationOwner
addOwnerStateListener
in interface ConfigurationOwner
public void removeOwnerStateListener(OwnerStateListener listener)
ConfigurationOwner
removeOwnerStateListener
in interface ConfigurationOwner
public DesignFactory rootDesignFactory()
ConfigurationOwner
rootDesignFactory
in interface ConfigurationOwner
public ArooaElement rootElement()
ConfigurationOwner
rootElement
in interface ConfigurationOwner
protected StateOperator getInitialStateOp()
StructuralJob
StateOperator
that will decide
how to evaluate the children's state.
getInitialStateOp
in class StructuralJob<Object>
public void setParts(int index, Object child)
Property: jobs
Description: The child jobs.
Required: No, but pointless if missing.
child
- A childprotected void execute() throws Exception
StructuralJob
execute
in class StructuralJob<Object>
Exception
- If the unexpected occurs.protected void onReset()
StructuralJob
onReset
in class StructuralJob<Object>
public BusService getServices()
ServiceProvider
getServices
in interface ServiceProvider
getServices
in interface BusServiceProvider
public BusConductor getBusConductor()
public void setBusConductor(BusConductor busConductor)
public boolean isNoAutoLink()
public void setNoAutoLink(boolean noAutoLink)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |