|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LifeCycle
The lifecycle interface for generic components.
Classes implementing this interface have a defined life cycle
defined by the methods of this interface.
| Nested Class Summary | |
|---|---|
static interface |
LifeCycle.Listener
Listener. |
| Method Summary | |
|---|---|
void |
addLifeCycleListener(LifeCycle.Listener listener)
|
boolean |
isFailed()
|
boolean |
isRunning()
|
boolean |
isStarted()
|
boolean |
isStarting()
|
boolean |
isStopped()
|
boolean |
isStopping()
|
void |
removeLifeCycleListener(LifeCycle.Listener listener)
|
void |
start()
Starts the component. |
void |
stop()
Stops the component. |
| Method Detail |
|---|
void start()
throws java.lang.Exception
java.lang.Exception - If the component fails to startisStarted(),
stop(),
isFailed()
void stop()
throws java.lang.Exception
java.lang.Exception - If the component fails to stopisStopped(),
start(),
isFailed()boolean isRunning()
boolean isStarted()
start(),
isStarting()boolean isStarting()
isStarted()boolean isStopping()
isStopped()boolean isStopped()
stop(),
isStopping()boolean isFailed()
void addLifeCycleListener(LifeCycle.Listener listener)
void removeLifeCycleListener(LifeCycle.Listener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||