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>
TheConfigurableHandle.ConfigureAutomatonHandleinterface defines those methods related to the handle based initialize/configure life-cycle. The handle reference requires theConfigurable.ConfigureAutomatoninterface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConfigurableHandle
ConfigurableHandle.ConfigureAutomatonHandle<H,CTX>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasConfigureAutomaton(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, initializeUnchecked
-
Methods inherited from interface org.refcodes.component.InitializedHandle
isInitzialized
-
-
-
-
Method Detail
-
hasConfigureAutomaton
boolean hasConfigureAutomaton(H aHandle) throws UnknownHandleRuntimeException
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
boolean isInitalizable(H aHandle, CTX aContext) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
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.
-
-