H
- The type of the handle.CON
- the connection used to initialize the referenced instance.ConnectionOpenableHandle<H,CON>
, OpenedHandle<H>
public static interface ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON> extends ConnectionOpenableHandle<H,CON>, OpenedHandle<H>
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.ConnectionOpenableHandle.ConnectionOpenAutomatonHandle<H,CON>
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasConnectionOpenAutomaton(H aHandle) |
Determines whether the handle reference is configurable by
implementing the
ConnectionOpenable.ConnectionOpenAutomaton interface. |
boolean |
isOpenable(H aHandle,
CON aConnection) |
Determines whether the component identified by the given handle may
get opened/connected.
|
hasConnectionOpenable, open, openUnchecked
isOpened
boolean hasConnectionOpenAutomaton(H aHandle) throws UnknownHandleRuntimeException
ConnectionOpenable.ConnectionOpenAutomaton
interface.aHandle
- The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException
- in case the handle is unknown.boolean isOpenable(H aHandle, CON aConnection) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle
- The handle identifying the component.aConnection
- The connection to be passed to the implementing
instance.ConnectionOpenableHandle.open(Object, Object)
is possible.UnknownHandleRuntimeException
- in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.Copyright © 2018. All rights reserved.