Module io.helidon.inject.api
Package io.helidon.inject.api
Class InjectorOptions.BuilderBase<BUILDER extends InjectorOptions.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InjectorOptions>
java.lang.Object
io.helidon.inject.api.InjectorOptions.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>
- Direct Known Subclasses:
InjectorOptions.Builder
- Enclosing interface:
InjectorOptions
public abstract static class InjectorOptions.BuilderBase<BUILDER extends InjectorOptions.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InjectorOptions>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
InjectorOptions.-
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 TypeMethodDescriptionOptionally, customized activator options to use for theActivator.activationRequest(ActivationRequest activationRequest) Optionally, customized activator options to use for theActivator.activationRequest(Consumer<ActivationRequest.Builder> consumer) Optionally, customized activator options to use for theActivator.activationRequest(Supplier<? extends ActivationRequest> supplier) Optionally, customized activator options to use for theActivator.from(InjectorOptions prototype) Update this builder from an existing prototype instance.from(InjectorOptions.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.strategy()The strategy the injector should apply.strategy(Injector.Strategy strategy) The strategy the injector should apply.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, self
-
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
-
strategy
The strategy the injector should apply. The default isInjector.Strategy.ANY.- Parameters:
strategy- the injector strategy to use- Returns:
- updated builder instance
- See Also:
-
activationRequest
Optionally, customized activator options to use for theActivator.- Parameters:
activationRequest- activator options, or leave blank to use defaults- Returns:
- updated builder instance
- See Also:
-
activationRequest
Optionally, customized activator options to use for theActivator.- Parameters:
consumer- consumer of builder for activator options, or leave blank to use defaults- Returns:
- updated builder instance
- See Also:
-
activationRequest
Optionally, customized activator options to use for theActivator.- Parameters:
supplier- supplier of activator options, or leave blank to use defaults- Returns:
- updated builder instance
- See Also:
-
strategy
The strategy the injector should apply. The default isInjector.Strategy.ANY.- Returns:
- the strategy
-
activationRequest
Optionally, customized activator options to use for theActivator.- Returns:
- the activation request
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-