Package org.oddjob.values
Class SetJob
- All Implemented Interfaces:
Runnable,ArooaContextAware,ArooaSessionAware,Forceable,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,Stateful
Description
A job which sets properties in other jobs when it executes.Example
Setting lots of properties.
<oddjob>
<job>
<sequential>
<jobs>
<set>
<values>
<value key="check.checkBoolean" value="true"/>
<value key="check.checkByte" value="127"/>
<value key="check.checkChar" value="a"/>
<date key="check.checkDate" date="2005-12-25" timeZone="GMT"/>
<value key="check.checkDouble" value="9E99"/>
<value key="check.checkFloat" value="1.23"/>
<value key="check.checkInt" value="1234567"/>
<value key="check.checkLong" value="2345678"/>
<value key="check.checkShort" value="123"/>
<value key="check.checkString" value="hello"/>
</values>
</set>
<bean id="check" class="org.oddjob.values.CheckBasicSetters"/>
</jobs>
</sequential>
</job>
</oddjob>
This is the configuration for one of the tests.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intexecute()Execute this job.voidsetValues(String name, ArooaValue value) Add a name value pair.Methods inherited from class org.oddjob.framework.extend.SimpleJob
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, onStop, run, sleep, softReset, stateHandler, stopMethods inherited from class org.oddjob.framework.extend.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toStringMethods inherited from class org.oddjob.framework.extend.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
-
Constructor Details
-
SetJob
public SetJob()
-
-
Method Details
-
setValues
Add a name value pair.- Parameters:
name- The name of the variable.value- The runtime configurable for the value.- Reference Property:
- values
- Required:
- No, but pointless if not provided.
Description
The thing to set on the property that is given by the key of this mapped property. -
execute
Description copied from class:SimpleJobExecute this job.
-