Module org.refcodes.component
Package org.refcodes.component
Interface Openable.OpenBuilder<B extends Openable.OpenBuilder<B>>
-
- Type Parameters:
B
- The instance to be returned on which to apply succeeding builder operations.
- All Known Subinterfaces:
LinkComponent.LinkComponentBuilder<B>
- Enclosing interface:
- Openable
public static interface Openable.OpenBuilder<B extends Openable.OpenBuilder<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()
Builder method for theOpenable.open()
method.default B
withOpenUnchecked()
Opens the component by callingwithOpen()
without you to require catching anIOException
.
-
-
-
Method Detail
-
withOpen
B withOpen() throws IOException
Builder method for theOpenable.open()
method.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
IOException
- Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
-
withOpenUnchecked
default B withOpenUnchecked()
Opens the component by callingwithOpen()
without you to require catching anIOException
.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
org.refcodes.exception.IORuntimeException
- encapsulates the cause and is thrown upon encountering aIOException
exception
-
-