Package com.adaptris.core
Interface StateManagedComponentContainer
-
- All Superinterfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,StateManagedComponent
public interface StateManagedComponentContainer extends StateManagedComponent
Extension toStateManagedComponent
used for fine grained state transitions.A
StateManagedComponent
may have references to otherStateManagedComponent
s whose state maybe be independently controlled and thus different from the state of this object. Therefore in some instances we still need to delegate requests to any state managed sub-components in case action is required.For instance, a JMX request stops a channel. In this instance, the adapter is still considered started; if an invocation of
StateManagedComponent.requestStart()
occurs for the adapter, it cannot just do nothing, it must delegate operations to any children that will require it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
requestChildClose()
Close any independent sub components.void
requestChildInit()
Initialise any independent sub-components.void
requestChildStart()
Start any independent sub components.void
requestChildStop()
Stop any independent sub components.-
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
Methods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepare
-
Methods inherited from interface com.adaptris.core.StateManagedComponent
changeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentState
-
-
-
-
Method Detail
-
requestChildInit
void requestChildInit() throws CoreException
Initialise any independent sub-components.- Throws:
CoreException
- wrapping any underlying Exceptions
-
requestChildStart
void requestChildStart() throws CoreException
Start any independent sub components.- Throws:
CoreException
- wrapping any underlying Exceptions
-
requestChildStop
void requestChildStop()
Stop any independent sub components.
-
requestChildClose
void requestChildClose()
Close any independent sub components.
-
-