Module org.refcodes.component
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:
ComponentHandleComposite<H,
,REF> ConfigurableLifecycleComponentHandle.ConfigurableLifecycleAutomatonHandle<H,
,CTX> LifecycleComponentHandle.LifecycleAutomatonHandle<H>
- Enclosing interface:
- StartableHandle<H>
public static interface StartableHandle.StartAutomatonHandle<H>
extends RunningHandle<H>, StartableHandle<H>
The
StartableHandle.StartAutomatonHandle
interface defines those methods related
to the handle based start life-cycle. The handle reference requires the
Startable.StartAutomaton
interface to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.StartableHandle
StartableHandle.StartAutomatonHandle<H>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasStartAutomaton
(H aHandle) Determines whether the handle reference is startable by implementing theStartable.StartAutomaton
interface.boolean
isStartable
(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 Details
-
hasStartAutomaton
Determines whether the handle reference is startable by implementing theStartable.StartAutomaton
interface.- 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.
-