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 theInitializablefunctionality to be invoked in a builder chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BwithInitialize(CTX aContext)Builder method for theConfigurable.initialize(Object)method.default BwithInitializeUnchecked(CTX aContext)Initializes the component by callingwithInitialize(Object)without you to require catching anConfigureException.
-
-
-
Method Detail
-
withInitialize
B withInitialize(CTX aContext) throws ConfigureException
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
default B withInitializeUnchecked(CTX aContext)
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:
org.refcodes.exception.HiddenException- encapsulates the cause and is thrown upon encountering aConfigureExceptionexception
-
-