Module org.refcodes.component
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>
The
ConnectionOpenableHandle.ConnectionOpenAutomatonHandle interface defines those methods
related to the handle based open/connect life-cycle. The handle reference
requires the ConnectionOpenable.ConnectionOpenAutomaton interface to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenableHandle
ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON> -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasConnectionOpenAutomaton(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, openUncheckedMethods inherited from interface org.refcodes.component.OpenedHandle
isOpened
-
Method Details
-
hasConnectionOpenAutomaton
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
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.
-