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:
CompositeComponentHandle<H,REF>
,LifeCycleComponentHandle.LifeCycleAutomatonHandle<H>
- Enclosing interface:
- InitializableHandle<H>
public static interface InitializableHandle.InitializeAutomatonHandle<H> extends InitializableHandle<H>, InitializedHandle<H>
TheInitializableHandle.InitializeAutomatonHandle
interface defines those methods related to the handle based initialize life-cycle. The handle reference requires theInitializable.InitializeAutomaton
interface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.InitializableHandle
InitializableHandle.InitializeAutomatonHandle<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
hasInitializeAutomaton
boolean hasInitializeAutomaton(H aHandle) throws UnknownHandleRuntimeException
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.
-
-