public abstract class CommonStartStop extends Object implements IStartStop
IStartStop. This abstract class
ensures that start and stop procedures are executed only once.| Constructor and Description |
|---|
CommonStartStop() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStarted()
Answer
true if this object is started |
void |
start()
Start the component lifecycle.
|
void |
stop()
Stop the component lifecycle.
|
boolean |
stopRequested(Set visited)
Ask the component if it agrees to end its lifecycle at the very moment.
|
public final boolean isStarted()
IStartStoptrue if this object is startedisStarted in interface IStartStoptrue if this object is started.public final void start()
IStartStopstart in interface IStartStoppublic final void stop()
IStartStopstop in interface IStartStoppublic boolean stopRequested(Set visited)
IStartStopstopRequested in interface IStartStopvisited - The optional set of already visited objects in the stop
request cycle.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.