Module org.refcodes.component
Package org.refcodes.component
Interface OpenableHandle.OpenAutomatonHandle<H>
- Type Parameters:
H
- The type of the handle.
- All Superinterfaces:
OpenableHandle<H>
,OpenedHandle<H>
- Enclosing interface:
- OpenableHandle<H>
public static interface OpenableHandle.OpenAutomatonHandle<H>
extends OpenableHandle<H>, OpenedHandle<H>
The
OpenableHandle.OpenAutomatonHandle
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.OpenableHandle
OpenableHandle.OpenAutomatonHandle<H>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasOpenAutomaton
(H aHandle) Determines whether the handle reference is openable by implementing theConnectionOpenable.ConnectionOpenAutomaton
interface.boolean
isOpenable
(H aHandle) Determines whether the component identified by the given handle may get opened/connected.Methods inherited from interface org.refcodes.component.OpenableHandle
hasOpenable, open, openUnchecked
Methods inherited from interface org.refcodes.component.OpenedHandle
isOpened
-
Method Details
-
hasOpenAutomaton
Determines whether the handle reference is openable by implementing theConnectionOpenable.ConnectionOpenAutomaton
interface.- 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.- Returns:
- True if
OpenableHandle.open(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.
-