H
- The type of the handle.CTX
- The context used to initialize the referenced instance.public interface ConfigurableHandle<H,CTX>
ConfigurableHandle
interface defines those methods related to the
handle based initialize/configure life-cycle.
The handle reference requires the Configurable
interface to be
implemented.
Modifier and Type | Interface and Description |
---|---|
static interface |
ConfigurableHandle.ConfigureAutomatonHandle<H,CTX>
The
ConfigurableHandle.ConfigureAutomatonHandle interface defines those methods
related to the handle based initialize/configure life-cycle. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasConfigurable(H aHandle)
Determines whether the handle reference is configurable by implementing
the
Configurable interface. |
void |
initialize(H aHandle,
CTX aContext)
Initialize/configure the component identified by the given handle.
|
default void |
initializeUnchecked(H aHandle,
CTX aContext)
Initializes the component by calling
initialize(Object, Object)
without you to require catching an ConfigureException . |
boolean hasConfigurable(H aHandle) throws UnknownHandleRuntimeException
Configurable
interface.aHandle
- The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException
- in case the handle is unknown.void initialize(H aHandle, CTX aContext) throws ConfigureException, UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException, IllegaleHandleStateChangeRuntimeException
aHandle
- The handle identifying the component.aContext
- The context to be passed to the implementing instance.ConfigureException
- in case initializing fails.UnknownHandleRuntimeException
- in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException
- in case the reference
of the handle does not support the requested operation.IllegaleHandleStateChangeRuntimeException
- Thrown in case a state
change is not possible due to the current state the referenced
component is in.default void initializeUnchecked(H aHandle, CTX aContext)
initialize(Object, Object)
without you to require catching an ConfigureException
.aHandle
- The handle identifying the component.aContext
- The context to be passed to the implementing instance.org.refcodes.exception.HiddenException
- encapsulates the cause and is thrown upon
encountering a ConfigureException
exceptionCopyright © 2017. All rights reserved.