Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractInjectorOptions.Builder<B extends AbstractInjectorOptions.Builder<B,T>,T extends InjectorOptions>
java.lang.Object
io.helidon.pico.api.InjectorOptions
io.helidon.pico.api.AbstractInjectorOptions.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- Direct Known Subclasses:
DefaultInjectorOptions.Builder
- Enclosing class:
AbstractInjectorOptions
public abstract static class AbstractInjectorOptions.Builder<B extends AbstractInjectorOptions.Builder<B,T>,T extends InjectorOptions>
extends InjectorOptions
implements Builder<B,T>
Fluent API builder for
T.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Optionally, customized activator options to use for theActivator.Setter for 'activationRequest'.strategy()The strategy the injector should apply.Setter for 'strategy'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.InjectorOptions, calling theAttributeVisitorfor each.
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
strategy
Description copied from class:InjectorOptionsThe strategy the injector should apply. The default isInjector.Strategy.ANY.- Specified by:
strategyin classInjectorOptions- Returns:
- the injector strategy to use
-
activationRequest
Description copied from class:InjectorOptionsOptionally, customized activator options to use for theActivator.- Specified by:
activationRequestin classInjectorOptions- Returns:
- activator options, or leave blank to use defaults
-
strategy
Setter for 'strategy'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
activationRequest
Setter for 'activationRequest'.- 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.InjectorOptions, 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
-