|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.framework.BaseComponent
An abstract implementation of a component which provides commen functionality to concrete sub classes.
| Field Summary | |
protected java.beans.PropertyChangeSupport |
changes
Implement property change support which sub classes can take advantage of. |
protected boolean |
destroyed
This flag is set once the object is destroyed Methods in subclass should check this flag. |
protected IconHelper |
iconHelper
Used to notify clients of an icon change. |
protected Location |
location
The location. |
protected Lock |
lock
This locks the component. |
protected JobStateHandler |
stateHandler
A state handler to delagate state change functionality to. |
| Constructor Summary | |
BaseComponent()
|
|
| Method Summary | |
void |
addIconListener(IconListener listener)
Add an icon listener. |
void |
addJobStateListener(JobStateListener listener)
Add a job state listener. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a property change listener. |
protected RuntimeConfiguration |
arooaRuntime()
|
void |
arooaRuntime(ArooaRuntime arooaRuntime)
|
protected boolean |
canHardReset()
|
protected boolean |
canSoftReset()
|
protected boolean |
configure()
Configure the runtime. |
void |
destroy()
Destroy resources. |
Location |
getLocation()
|
IconTip |
iconForId(java.lang.String iconId)
Return an icon tip for a given id. |
JobStateEvent |
lastJobStateEvent()
Returns the last JobState event. |
protected abstract org.apache.log4j.Logger |
logger()
|
void |
onDestroy()
Subclasses override this method to clear up resources. |
void |
removeIconListener(IconListener listener)
Remove an icon listener. |
void |
removeJobStateListener(JobStateListener listener)
Remove a job state listener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a property change listener. |
protected void |
setJobStateComplete()
|
protected void |
setJobStateException(java.lang.Throwable ex)
Utility method to set the job state to exception. |
protected void |
setJobStateNotComplete()
|
protected void |
setJobStateReady()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Location location
protected java.beans.PropertyChangeSupport changes
protected IconHelper iconHelper
protected JobStateHandler stateHandler
protected volatile boolean destroyed
protected Lock lock
| Constructor Detail |
public BaseComponent()
| Method Detail |
protected abstract org.apache.log4j.Logger logger()
public void arooaRuntime(ArooaRuntime arooaRuntime)
public Location getLocation()
protected RuntimeConfiguration arooaRuntime()
protected void setJobStateReady()
protected void setJobStateComplete()
protected void setJobStateNotComplete()
protected void setJobStateException(java.lang.Throwable ex)
ex - The exception.protected boolean configure()
protected boolean canSoftReset()
protected boolean canHardReset()
public JobStateEvent lastJobStateEvent()
This is not a property so that it can't be accessed directly in scripts.
public void addJobStateListener(JobStateListener listener)
public void removeJobStateListener(JobStateListener listener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listener.public IconTip iconForId(java.lang.String iconId)
iconForId in interface IconiciconId - The icon id.
public void addIconListener(IconListener listener)
addIconListener in interface Iconiclistener - The listener.public void removeIconListener(IconListener listener)
removeIconListener in interface Iconiclistener - The listener.public final void destroy()
public void onDestroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||