public final class ClosedState extends ComponentStateImp
Represents closed StateManagedComponent
s and implements permitted transitions.
log
Modifier and Type | Method and Description |
---|---|
static ClosedState |
getInstance()
Returns the single instance of this class.
|
void |
requestInit(StateManagedComponent comp)
Perform operations required to move
comp from this
state to InitialisedState , if possible. |
void |
requestStart(StateManagedComponent comp)
Perform operations required to move
comp from this
state to StartedState , if possible. |
requestClose, requestRestart, requestStop, toString
public void requestInit(StateManagedComponent comp) throws CoreException
ComponentState
Perform operations required to move comp
from this
state to InitialisedState
, if possible.
requestInit
in interface ComponentState
requestInit
in class ComponentStateImp
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptions(com.adaptris.core.StateManagedComponent)
public void requestStart(StateManagedComponent comp) throws CoreException
ComponentState
Perform operations required to move comp
from this
state to StartedState
, if possible.
requestStart
in interface ComponentState
requestStart
in class ComponentStateImp
comp
- the StateManagedComponent
to manipulateCoreException
- wrapping any underlying exceptions(com.adaptris.core.StateManagedComponent)
public static ClosedState getInstance()
Returns the single instance of this class.