Module io.helidon.inject.api
Package io.helidon.inject.api
Class Bootstrap.BuilderBase<BUILDER extends Bootstrap.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Bootstrap>
java.lang.Object
io.helidon.inject.api.Bootstrap.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
Bootstrap.Builder
- Enclosing interface:
Bootstrap
public abstract static class Bootstrap.BuilderBase<BUILDER extends Bootstrap.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Bootstrap>
extends Object
implements Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
Bootstrap.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.config()Provides the base primordial bootstrap configuration to theInjectionServicesProvider.Config to use.Update this builder from an existing prototype instance.from(Bootstrap.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.In certain conditions Injection services should be initialized but not started (i.e., avoiding calls toPostConstructetc.).limitRuntimePhase(Phase limitRuntimePhase) In certain conditions Injection services should be initialized but not started (i.e., avoiding calls toPostConstructetc.).protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, selfMethods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Config to use.- Specified by:
configin interfacePrototype.ConfiguredBuilder<BUILDER extends Bootstrap.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends Bootstrap> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearLimitRuntimePhase
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
limitRuntimePhase
In certain conditions Injection services should be initialized but not started (i.e., avoiding calls toPostConstructetc.). This can be used in special cases where the normal Injection startup should limit lifecycle up to a given phase. Normally one should not use this feature - it is mainly used in Injection tooling (e.g., the injection maven-plugin).- Parameters:
limitRuntimePhase- the phase to stop at during lifecycle- Returns:
- updated builder instance
- See Also:
-
config
Provides the base primordial bootstrap configuration to theInjectionServicesProvider. The provider will then bootstrapInjectionServicesusing this bootstrap instance. then default values will be used accordingly.- Returns:
- the config
-
limitRuntimePhase
In certain conditions Injection services should be initialized but not started (i.e., avoiding calls toPostConstructetc.). This can be used in special cases where the normal Injection startup should limit lifecycle up to a given phase. Normally one should not use this feature - it is mainly used in Injection tooling (e.g., the injection maven-plugin).- Returns:
- the limit runtime phase
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-