Package org.refcodes.component
Interface StartableHandle.StartAutomatonHandle<H>
-
- Type Parameters:
H- The type of the handle.
- All Superinterfaces:
RunningHandle<H>,StartableHandle<H>
- All Known Subinterfaces:
CompositeComponentHandle<H,REF>,ConfigurableLifeCycleComponentHandle.ConfigurableLifeCycleAutomatonHandle<H,CTX>,LifeCycleComponentHandle.LifeCycleAutomatonHandle<H>
- Enclosing interface:
- StartableHandle<H>
public static interface StartableHandle.StartAutomatonHandle<H> extends RunningHandle<H>, StartableHandle<H>
TheStartableHandle.StartAutomatonHandleinterface defines those methods related to the handle based start life-cycle. The handle reference requires theStartable.StartAutomatoninterface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.StartableHandle
StartableHandle.StartAutomatonHandle<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasStartAutomaton(H aHandle)Determines whether the handle reference is startable by implementing theStartable.StartAutomatoninterface.booleanisStartable(H aHandle)Determines whether the component identified by the given handle may get started.-
Methods inherited from interface org.refcodes.component.RunningHandle
isRunning
-
Methods inherited from interface org.refcodes.component.StartableHandle
hasStartable, start, startUnchecked
-
-
-
-
Method Detail
-
hasStartAutomaton
boolean hasStartAutomaton(H aHandle) throws UnknownHandleRuntimeException
Determines whether the handle reference is startable by implementing theStartable.StartAutomatoninterface.- Parameters:
aHandle- The handle to test whether the reference provides the according functionality.- Returns:
- True in case the reference provides the according functionality.
- Throws:
UnknownHandleRuntimeException- in case the handle is unknown.
-
isStartable
boolean isStartable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Determines whether the component identified by the given handle may get started.- Parameters:
aHandle- The handle identifying the component.- Returns:
- True if
StartableHandle.start(Object)is possible. - Throws:
UnknownHandleRuntimeException- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException- in case the reference of the handle does not support the requested operation.
-
-