Package org.refcodes.component
Interface ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON>
-
- Type Parameters:
H- The type of the handle.CON- the connection used to initialize the referenced instance.
- All Superinterfaces:
ConnectionOpenableHandle<H,CON>,OpenedHandle<H>
- Enclosing interface:
- ConnectionOpenableHandle<H,CON>
public static interface ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON> extends ConnectionOpenableHandle<H,CON>, OpenedHandle<H>
TheConnectionOpenableHandle.ConnectionOpenAutomatonHandleinterface defines those methods related to the handle based open/connect life-cycle. The handle reference requires theConnectionOpenable.ConnectionOpenAutomatoninterface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenableHandle
ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasConnectionOpenAutomaton(H aHandle)Determines whether the handle reference is configurable by implementing theConnectionOpenable.ConnectionOpenAutomatoninterface.booleanisOpenable(H aHandle, CON aConnection)Determines whether the component identified by the given handle may get opened/connected.-
Methods inherited from interface org.refcodes.component.ConnectionOpenableHandle
hasConnectionOpenable, open, openUnchecked
-
Methods inherited from interface org.refcodes.component.OpenedHandle
isOpened
-
-
-
-
Method Detail
-
hasConnectionOpenAutomaton
boolean hasConnectionOpenAutomaton(H aHandle) throws UnknownHandleRuntimeException
Determines whether the handle reference is configurable by implementing theConnectionOpenable.ConnectionOpenAutomatoninterface.- 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.
-
isOpenable
boolean isOpenable(H aHandle, CON aConnection) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Determines whether the component identified by the given handle may get opened/connected.- Parameters:
aHandle- The handle identifying the component.aConnection- The connection to be passed to the implementing instance.- Returns:
- True if
ConnectionOpenableHandle.open(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.
-
-