Package org.refcodes.component
Interface ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
-
- Type Parameters:
CON
- the generic typeB
- The instance to be returned on which to apply succeeding builder operations.
- All Known Subinterfaces:
ConnectionComponent.ConnectionComponentBuilder<CON,B>
- Enclosing interface:
- ConnectionOpenable<CON>
public static interface ConnectionOpenable.ConnectionOpenBuilder<CON,B extends ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
To enable theStartable
functionality to be invoked in a builder chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description B
withOpen(CON aConnection)
Builder method for theConnectionOpenable.open(Object)
method.default B
withOpenUnchecked(CON aConnection)
Opens the component by callingwithOpen(Object)
without you to require catching anOpenException
.
-
-
-
Method Detail
-
withOpen
B withOpen(CON aConnection) throws OpenException
Builder method for theConnectionOpenable.open(Object)
method.- Parameters:
aConnection
- The connection used for opening the connection.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
OpenException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
withOpenUnchecked
default B withOpenUnchecked(CON aConnection)
Opens the component by callingwithOpen(Object)
without you to require catching anOpenException
.- Parameters:
aConnection
- The connection used for opening the connection.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
org.refcodes.exception.HiddenException
- encapsulates the cause and is thrown upon encountering aOpenException
exception
-
-