Module org.refcodes.component
Package org.refcodes.component
Interface Configurable.ConfigureBuilder<CTX,B extends Configurable.ConfigureBuilder<CTX,B>>
- Type Parameters:
CTX
- the context used to initialize the implementing instance.B
- The instance to be returned on which to apply succeeding builder operations.
- Enclosing interface:
- Configurable<CTX>
public static interface Configurable.ConfigureBuilder<CTX,B extends Configurable.ConfigureBuilder<CTX,B>>
To enable the
Initializable
functionality to be invoked in a
builder chain.-
Method Summary
Modifier and TypeMethodDescriptionwithInitialize
(CTX aContext) Builder method for theConfigurable.initialize(Object)
method.default B
withInitializeUnchecked
(CTX aContext) Initializes the component by callingwithInitialize(Object)
without you to require catching anConfigureException
.
-
Method Details
-
withInitialize
Builder method for theConfigurable.initialize(Object)
method.- Parameters:
aContext
- The context to be passed to the implementing instance.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
ConfigureException
- Thrown in case initializing fails.
-
withInitializeUnchecked
Initializes the component by callingwithInitialize(Object)
without you to require catching anConfigureException
.- Parameters:
aContext
- The context to be passed to the implementing instance.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
ConfigureException.ConfigureRuntimeException
- encapsulates the aCause and is thrown upon encountering aConfigureException
exception
-