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>
TheOpenableHandle.OpenAutomatonHandle
interface defines those methods related to the handle based open/connect life-cycle. The handle reference requires theConnectionOpenable.ConnectionOpenAutomaton
interface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.OpenableHandle
OpenableHandle.OpenAutomatonHandle<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
hasOpenAutomaton
boolean hasOpenAutomaton(H aHandle) throws UnknownHandleRuntimeException
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
boolean isOpenable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
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.
-
-