CON
- the generic typeB
- The instance to be returned on which to apply succeeding
builder operations.ConnectionComponent.ConnectionComponentBuilder<CON,B>
public static interface ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
Startable
functionality to be invoked in a builder
chain.Modifier and Type | Method | Description |
---|---|---|
B |
withOpen(CON aConnection) |
Builder method for the
ConnectionOpenable.open(Object)
method. |
default B |
withOpenUnchecked(CON aConnection) |
Opens the component by calling
withOpen(Object) without you
to require catching an OpenException . |
B withOpen(CON aConnection) throws OpenException
ConnectionOpenable.open(Object)
method.aConnection
- The connection used for opening the connection.OpenException
- Thrown in case opening or accessing an open
line (connection, junction, link) caused problems.default B withOpenUnchecked(CON aConnection)
withOpen(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.