|
|||||||||
| 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
An abstract implementation of a component which provides commen functionality to concrete sub classes.
| Field Summary | |
protected boolean |
stop
This flag is set by the stop method and should be examined by any Stoppable sub classes in their processing loop. |
| Fields inherited from class org.oddjob.framework.BaseComponent |
changes, destroyed, iconHelper, location, lock, stateHandler |
| Constructor Summary | |
BasePrimary()
|
|
| Method Summary | |
protected void |
configurationComplete()
Called after a component is configured. |
java.lang.String |
getLogger()
|
java.lang.String |
getName()
Get the job name. |
protected boolean |
independant()
|
protected org.apache.log4j.Logger |
logger()
Allow sub classes access to the logger. |
boolean |
setContext(ArooaContext context)
Called during construction by the framework to allow a component access to the context that's creating it. |
protected void |
setJobStateReady()
|
void |
setLogger(java.lang.String logger)
|
void |
setName(java.lang.String name)
Set the job name. |
protected void |
sleep(long waitTime)
Utility method to sleep a certain time. |
java.lang.String |
toString()
Override toString. |
| Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addJobStateListener, addPropertyChangeListener, arooaRuntime, arooaRuntime, canHardReset, canSoftReset, configure, destroy, getLocation, iconForId, lastJobStateEvent, onDestroy, removeIconListener, removeJobStateListener, removePropertyChangeListener, setJobStateComplete, setJobStateException, setJobStateNotComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected transient volatile boolean stop
| Constructor Detail |
public BasePrimary()
| Method Detail |
protected org.apache.log4j.Logger logger()
logger in class BaseComponentpublic boolean setContext(ArooaContext context)
If this method returns true then it is an independent component responsible for it's own configuration and won't have it's configuration linked to its parents.
Subclasses overriding this method should always call super.setContext().
context - The ArooaXMLContext.
protected boolean independant()
protected void setJobStateReady()
setJobStateReady in class BaseComponentprotected void sleep(long waitTime)
waitTime - Milliseconds to sleep for.protected void configurationComplete()
public void setName(java.lang.String name)
name - The name of the job.public java.lang.String getName()
public java.lang.String getLogger()
public void setLogger(java.lang.String logger)
logger - The logger to set.public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||