CompositeComponent
, CompositeComponent.ExtendedCompositeComponent<CTX,CON>
, LinkComponent
, LinkComponent.LinkAutomaton
, LinkComponent.LinkComponentBuilder<B>
, Openable.OpenAutomaton
AbstractDeviceAutomaton
, CompositeComponentImpl
, CompositeComponentImpl.ExtendedCompositeComponentImpl
, DeviceAutomatonImpl
public interface Openable
Initializable
interface. To clarify the context regarding
connections, the Openable
interface has been introduced.
In case a connection is to be provided to the open()
method, you may
use the ConnectionOpenable
interface with its
ConnectionOpenable.open(Object)
method, which provides an argument
specifying the connection to be passed to the Component
.
Modifier and Type | Interface | Description |
---|---|---|
static interface |
Openable.OpenAutomaton |
The
Openable.OpenAutomaton interface defines those methods related to the
opening of connection(s) life-cycle. |
static interface |
Openable.OpenBuilder<B extends Openable.OpenBuilder<B>> |
To enable the
Startable functionality to be invoked in a builder
chain. |
Modifier and Type | Method | Description |
---|---|---|
void |
open() |
Open the component's connection(s).
|
default void |
openUnchecked() |
Opens the component by calling
open() without you to require
catching an OpenException . |
void open() throws OpenException
OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.default void openUnchecked()
open()
without you to require
catching an OpenException
.OpenException.OpenRuntimeException
- encapsulates the cause and is thrown upon
encountering a OpenException
exceptionCopyright © 2018. All rights reserved.