|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmirrormap.lifecycle.AbstractLifeCycle
public abstract class AbstractLifeCycle
Base-class for all ILifeCycle instances.
| Constructor Summary | |
|---|---|
AbstractLifeCycle()
|
|
| Method Summary | |
|---|---|
protected void |
checkActive()
Check if this instance is active. |
void |
destroy()
This is called when the object is being removed from application use. |
protected abstract void |
doDestroy()
Overridden in subclasses to perform custom logic on destruction. |
protected abstract void |
doStart()
Overridden in subclasses to perform custom logic on activation. |
protected void |
finalize()
|
boolean |
isActive()
Determine if this life-cycle object is active. |
void |
start()
Activate (start) this object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLifeCycle()
| Method Detail |
|---|
public final boolean isActive()
ILifeCycle
isActive in interface ILifeCycletrue if the object is activeprotected abstract void doStart()
RuntimeException or subclass
thereof. When this method is called, the isActive() method will
return true.
protected abstract void doDestroy()
RuntimeException or subclass
thereof.
public final void start()
ILifeCycle
This method may throw a RuntimeException if it fails to activate
the object.
start in interface ILifeCyclepublic final void destroy()
IDestroyable
This method must not throw a RuntimeException.
destroy in interface IDestroyable
protected final void finalize()
throws Throwable
finalize in class ObjectThrowableprotected void checkActive()
IllegalStateException - if this is not activepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||