CON
- The type of the connection to be used.CompositeComponent.ExtendedCompositeComponent<CTX,CON>
, ConnectionComponent<CON>
, ConnectionComponent.ConnectionAutomaton<CON>
, ConnectionComponent.ConnectionComponentBuilder<CON,B>
, ConnectionOpenable.ConnectionOpenAutomaton<CON>
CompositeComponentImpl.ExtendedCompositeComponentImpl
, ConnectionAutomatonImpl
public interface ConnectionOpenable<CON>
Configurable
interface. To clarify the context regarding
connections, the ConnectionOpenable
interface has been introduced.
In case a no connection is to be provided to the open(Object)
method
(as it may have been passed via the constructor), you may use the
Openable
interface with its Openable.open()
method, which
does not require any arguments specifying a connection.
Modifier and Type | Interface | Description |
---|---|---|
static interface |
ConnectionOpenable.ConnectionOpenAutomaton<CON> |
The
ConnectionOpenable.ConnectionOpenAutomaton interface defines those methods
related to the opening of connection(s) life-cycle. |
static interface |
ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>> |
To enable the
Startable functionality to be invoked in a builder
chain. |
Modifier and Type | Method | Description |
---|---|---|
void |
open(CON aConnection) |
Opens the component with the given connection.
|
default void |
openUnchecked(CON aConnection) |
Opens the component by calling
open(Object) without you to
require catching an OpenException . |
void open(CON aConnection) throws OpenException
aConnection
- The connection used for opening the connection.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.default void openUnchecked(CON aConnection)
open(Object)
without you to
require catching an OpenException
.aConnection
- The connection used for opening the connection.org.refcodes.exception.HiddenException
- encapsulates the cause and is thrown upon
encountering a OpenException
exceptionCopyright © 2018. All rights reserved.