|
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()
IStartStop
true
if this object is started
isStarted
in interface IStartStop
true
if this object is started.public boolean isStopped()
IStartStop
true
if this object is stopped
isStopped
in interface IStartStop
true
if this object is stopped.public void setLabel(String label)
public void start()
start
in interface IStartStop
IStartStop.start()
public void startAuto()
IStartStop.start()
public void stop()
stop
in interface IStartStop
IStartStop.stop()
public boolean stopRequested(Set visited)
IStartStop
stopRequested
in interface IStartStop
visited
- 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 |