Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractBootstrap.Builder<B extends AbstractBootstrap.Builder<B,T>,T extends Bootstrap>
java.lang.Object
io.helidon.pico.api.AbstractBootstrap.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- Direct Known Subclasses:
DefaultBootstrap.Builder
- Enclosing class:
AbstractBootstrap
public abstract static class AbstractBootstrap.Builder<B extends AbstractBootstrap.Builder<B,T>,T extends Bootstrap>
extends Object
implements Bootstrap, Builder<B,T>
Fluent API builder for
T.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.config()Provides the base primordial bootstrap configuration to thePicoServicesProvider.Setter for 'config'.Setter for 'config'.In certain conditions Pico services should be initialized but not started (i.e., avoiding calls toPostConstructetc.).limitRuntimePhase(Phase val) Setter for 'limitRuntimePhase'.limitRuntimePhase(Optional<Phase> val) Setter for 'limitRuntimePhase'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.Bootstrap, calling theAttributeVisitorfor each.
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
config
Description copied from interface:BootstrapProvides the base primordial bootstrap configuration to thePicoServicesProvider. The provider will then bootstrapPicoServicesusing this bootstrap instance. then default values will be used accordingly. -
limitRuntimePhase
Description copied from interface:BootstrapIn certain conditions Pico services should be initialized but not started (i.e., avoiding calls toPostConstructetc.). This can be used in special cases where the normal Pico startup should limit lifecycle up to a given phase. Normally one should not use this feature - it is mainly used in Pico tooling (e.g., the pico-maven-plugin).- Specified by:
limitRuntimePhasein interfaceBootstrap- Returns:
- the phase to stop at during lifecycle
-
config
Setter for 'config'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
config
Setter for 'config'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
limitRuntimePhase
Setter for 'limitRuntimePhase'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
limitRuntimePhase
Setter for 'limitRuntimePhase'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.pico.api.Bootstrap, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-