Module org.refcodes.component
Package org.refcodes.component
Interface InitializableHandle.InitializeAutomatonHandle<H>
- Type Parameters:
H
- The type of the handle.
- All Superinterfaces:
InitializableHandle<H>
,InitializedHandle<H>
- All Known Subinterfaces:
ComponentHandleComposite<H,
,REF> LifecycleComponentHandle.LifecycleAutomatonHandle<H>
- Enclosing interface:
- InitializableHandle<H>
public static interface InitializableHandle.InitializeAutomatonHandle<H>
extends InitializableHandle<H>, InitializedHandle<H>
The
InitializableHandle.InitializeAutomatonHandle
interface defines those methods
related to the handle based initialize life-cycle. The handle reference
requires the Initializable.InitializeAutomaton
interface to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.InitializableHandle
InitializableHandle.InitializeAutomatonHandle<H>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasInitializeAutomaton
(H aHandle) Determines whether the handle reference is initalizable by implementing theInitializable.InitializeAutomaton
interface.boolean
isInitalizable
(H aHandle) Determines whether the component identified by the given handle may get initialized.Methods inherited from interface org.refcodes.component.InitializableHandle
hasInitalizable, initialize, initializeUnchecked
Methods inherited from interface org.refcodes.component.InitializedHandle
isInitzialized
-
Method Details
-
hasInitializeAutomaton
Determines whether the handle reference is initalizable by implementing theInitializable.InitializeAutomaton
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.
-
isInitalizable
boolean isInitalizable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException Determines whether the component identified by the given handle may get initialized.- Parameters:
aHandle
- The handle identifying the component.- Returns:
- True if
InitializableHandle.initialize(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.
-