Module org.refcodes.component
Package org.refcodes.component
Interface Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>
-
- Type Parameters:
B
- The instance to be returned on which to apply succeeding builder operations.
- Enclosing interface:
- Initializable
public static interface Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>
To enable theInitializable
functionality to be invoked in a builder chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description B
withInitialize()
Builder method for theInitializable.initialize()
method.default B
withInitializeUnchecked()
Initialize the component by callingwithInitialize()
without you to require catching anInitializeException
.
-
-
-
Method Detail
-
withInitialize
B withInitialize() throws InitializeException
Builder method for theInitializable.initialize()
method.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
InitializeException
- Thrown in case initializing fails.
-
withInitializeUnchecked
default B withInitializeUnchecked()
Initialize the component by callingwithInitialize()
without you to require catching anInitializeException
.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
InitializeException.InitializeRuntimeException
- encapsulates the cause and is thrown upon encountering aInitializeException
exception
-
-