Module org.refcodes.component
Package org.refcodes.component
Interface ConfigurableHandle.ConfigureAutomatonHandle<H,CTX>
- Type Parameters:
H- The type of the handle.CTX- the context used to initialize the referenced instance.
- All Superinterfaces:
ConfigurableHandle<H,,CTX> InitializedHandle<H>
- All Known Subinterfaces:
ConfigurableLifecycleComponentHandle.ConfigurableLifecycleAutomatonHandle<H,CTX>
- Enclosing interface:
- ConfigurableHandle<H,
CTX>
public static interface ConfigurableHandle.ConfigureAutomatonHandle<H,CTX>
extends ConfigurableHandle<H,CTX>, InitializedHandle<H>
The
ConfigurableHandle.ConfigureAutomatonHandle interface defines those methods
related to the handle based initialize/configure life-cycle. The handle
reference requires the Configurable.ConfigureAutomaton interface to be
implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.ConfigurableHandle
ConfigurableHandle.ConfigureAutomatonHandle<H,CTX> -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasConfigureAutomaton(H aHandle) Determines whether the handle reference is configurable by implementing theConfigurable.ConfigureAutomatoninterface.booleanisInitalizable(H aHandle, CTX aContext) Determines whether the component identified by the given handle may get initialized/configured.Methods inherited from interface org.refcodes.component.ConfigurableHandle
hasConfigurable, initialize, initializeUncheckedMethods inherited from interface org.refcodes.component.InitializedHandle
isInitzialized
-
Method Details
-
hasConfigureAutomaton
Determines whether the handle reference is configurable by implementing theConfigurable.ConfigureAutomatoninterface.- 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
Determines whether the component identified by the given handle may get initialized/configured.- Parameters:
aHandle- The handle identifying the component.aContext- The context to be passed to the implementing instance.- Returns:
- True if
ConfigurableHandle.initialize(Object, 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.
-