|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.event.LifecycleWatchdog
public abstract class LifecycleWatchdog
A tool for intercepting and handling lifecycle related events.
| Constructor Summary | |
|---|---|
LifecycleWatchdog(INotificationSupport factory)
|
|
| Method Summary | |
|---|---|
String |
getLabel()
|
INotificationSupport |
getObject()
|
boolean |
isStarted()
Answer true if this object is started |
boolean |
isStopped()
Answer true if this object is stopped |
void |
setLabel(String label)
|
void |
start()
Arm the watchdog itself. |
void |
startAuto()
Arm the watchdog itself. |
void |
stop()
Disarm the watchdog itself. |
boolean |
stopRequested(Set visited)
Ask the component if it agrees to end its lifecycle at the very moment. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleWatchdog(INotificationSupport factory)
| Method Detail |
|---|
public String getLabel()
public INotificationSupport getObject()
public boolean isStarted()
IStartStoptrue if this object is started
isStarted in interface IStartStoptrue if this object is started.public boolean isStopped()
IStartStoptrue if this object is stopped
isStopped in interface IStartStoptrue if this object is stopped.public void setLabel(String label)
public void start()
start in interface IStartStopIStartStop.start()public void startAuto()
IStartStop.start()public void stop()
stop in interface IStartStopIStartStop.stop()public boolean stopRequested(Set visited)
IStartStop
stopRequested in interface IStartStopvisited - The optional set of already visited objects in the stop
request cycle.public String toString()
toString in class Object
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||