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 theStartablefunctionality to be invoked in a builder chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BwithOpen()Builder method for theOpenable.open()method.default BwithOpenUnchecked()Opens the component by callingwithOpen()without you to require catching anOpenException.
-
-
-
Method Detail
-
withOpen
B withOpen() throws OpenException
Builder method for theOpenable.open()method.- 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()
Opens the component by callingwithOpen()without you to require catching anOpenException.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
OpenException.OpenRuntimeException- encapsulates the cause and is thrown upon encountering aOpenExceptionexception
-
-