Package com.adaptris.core
Class ClosedState
- java.lang.Object
-
- com.adaptris.core.ComponentStateImp
-
- com.adaptris.core.ClosedState
-
- All Implemented Interfaces:
ComponentState
,java.io.Serializable
public final class ClosedState extends ComponentStateImp
Represents closed
StateManagedComponent
s and implements permitted transitions.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ComponentStateImp
log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClosedState
getInstance()
Returns the single instance of this class.void
requestInit(StateManagedComponent comp)
Perform operations required to movecomp
from this state toInitialisedState
, if possible.void
requestStart(StateManagedComponent comp)
Perform operations required to movecomp
from this state toStartedState
, if possible.-
Methods inherited from class com.adaptris.core.ComponentStateImp
requestClose, requestRestart, requestStop, toString
-
-
-
-
Method Detail
-
requestInit
public void requestInit(StateManagedComponent comp) throws CoreException
Description copied from interface:ComponentState
Perform operations required to move
comp
from this state toInitialisedState
, if possible.- Specified by:
requestInit
in interfaceComponentState
- Overrides:
requestInit
in classComponentStateImp
- Parameters:
comp
- theStateManagedComponent
to manipulate- Throws:
CoreException
- wrapping any underlying exceptions- See Also:
(com.adaptris.core.StateManagedComponent)
-
requestStart
public void requestStart(StateManagedComponent comp) throws CoreException
Description copied from interface:ComponentState
Perform operations required to move
comp
from this state toStartedState
, if possible.- Specified by:
requestStart
in interfaceComponentState
- Overrides:
requestStart
in classComponentStateImp
- Parameters:
comp
- theStateManagedComponent
to manipulate- Throws:
CoreException
- wrapping any underlying exceptions- See Also:
(com.adaptris.core.StateManagedComponent)
-
getInstance
public static ClosedState getInstance()
Returns the single instance of this class.
- Returns:
- the single instance of this class
-
-