| |
|
| org.picocontainer.lifecycle.LifecycleState
LifecycleState | public enum LifecycleState (Code) | | Current lifecycle state of the container.
author: Michael Rimov |
Field Summary | |
Enum Constant | CONSTRUCTED Default state of a container once it has been built. | Enum Constant | DISPOSED 'Dispose' lifecycle has been called. | Enum Constant | STARTED 'Start' Lifecycle has been called. | Enum Constant | STOPPED 'Stop' lifecycle has been called. |
Method Summary | |
public boolean | isDisposedAllowed() Returns true if the dispose lifecycle method is normally called. | public boolean | isStartAllowed() Start is normally allowed if the object is constructed or
already stopped. | public boolean | isStarted() | public boolean | isStopAllowed() Returns true if stop is normally allowed in the container
lifecycle. |
CONSTRUCTED | Enum Constant CONSTRUCTED(Code) | | Default state of a container once it has been built.
|
DISPOSED | Enum Constant DISPOSED(Code) | | 'Dispose' lifecycle has been called.
|
STARTED | Enum Constant STARTED(Code) | | 'Start' Lifecycle has been called.
|
STOPPED | Enum Constant STOPPED(Code) | | 'Stop' lifecycle has been called.
|
isDisposedAllowed | public boolean isDisposedAllowed()(Code) | | Returns true if the dispose lifecycle method is normally called.
Dispose is normally only allowed if the object has not been already
disposed, and it is not started.
|
isStartAllowed | public boolean isStartAllowed()(Code) | | Start is normally allowed if the object is constructed or
already stopped. It is not allowed if the system is already
started or disposed.
true if start lifecycle methods should be allowed. |
isStarted | public boolean isStarted()(Code) | | |
isStopAllowed | public boolean isStopAllowed()(Code) | | Returns true if stop is normally allowed in the container
lifecycle. Stop is normally only allowed while the current
container state is STARTED.
true if stop is allowed. |
|
|
|