Module io.helidon.pico.api
Package io.helidon.pico.spi
Class AbstractInjectionPlan.Builder<B extends AbstractInjectionPlan.Builder<B,T>,T extends InjectionPlan>
java.lang.Object
io.helidon.pico.spi.AbstractInjectionPlan.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> InjectionPlan,Supplier<T>
- Direct Known Subclasses:
DefaultInjectionPlan.Builder
- Enclosing class:
AbstractInjectionPlan
public abstract static class AbstractInjectionPlan.Builder<B extends AbstractInjectionPlan.Builder<B,T>,T extends InjectionPlan>
extends Object
implements InjectionPlan, Builder<B,T>
Fluent API builder for
T.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ListField value forjava.util.List<io.helidon.pico.api.ServiceProvider<?>> injectionPointQualifiedServiceProviders(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Setter for 'injectionPointQualifiedServiceProviders'.Setter for 'injectionPointQualifiedServiceProviders'.The injection point info for this element, which will also include its identity information.Setter for 'injectionPointInfo'.List<ServiceProvider<?>>The list of service providers that are qualified to satisfy the given injection point for this service provider.Setter for 'injectionPointQualifiedServiceProviders'.resolved()The resolved value, set only ifInjectionPlan.wasResolved().Setter for 'resolved'.Setter for 'resolved'.The service provider this plan pertains to.serviceProvider(ServiceProvider<?> val) Setter for 'serviceProvider'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.spi.InjectionPlan, calling theAttributeVisitorfor each.booleanFlag indicating whether resolution occurred.wasResolved(boolean val) Setter for 'wasResolved'.
-
Field Details
-
injectionPointQualifiedServiceProviders
Field value forjava.util.List<io.helidon.pico.api.ServiceProvider<?>> injectionPointQualifiedServiceProviders().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
serviceProvider
Description copied from interface:InjectionPlanThe service provider this plan pertains to.- Specified by:
serviceProviderin interfaceInjectionPlan- Returns:
- the service provider this plan pertains to
-
injectionPointInfo
Description copied from interface:InjectionPlanThe injection point info for this element, which will also include its identity information.- Specified by:
injectionPointInfoin interfaceInjectionPlan- Returns:
- the injection point info for this element
-
injectionPointQualifiedServiceProviders
Description copied from interface:InjectionPlanThe list of service providers that are qualified to satisfy the given injection point for this service provider.- Specified by:
injectionPointQualifiedServiceProvidersin interfaceInjectionPlan- Returns:
- the qualified service providers for this injection point
-
wasResolved
public boolean wasResolved()Description copied from interface:InjectionPlanFlag indicating whether resolution occurred.- Specified by:
wasResolvedin interfaceInjectionPlan- Returns:
- true if resolution occurred
-
resolved
Description copied from interface:InjectionPlanThe resolved value, set only ifInjectionPlan.wasResolved().- Specified by:
resolvedin interfaceInjectionPlan- Returns:
- any resolved value
-
serviceProvider
Setter for 'serviceProvider'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPointInfo
Setter for 'injectionPointInfo'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPointQualifiedServiceProviders
Setter for 'injectionPointQualifiedServiceProviders'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addInjectionPointQualifiedServiceProviders
Setter for 'injectionPointQualifiedServiceProviders'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addInjectionPointQualifiedServiceProvider
Setter for 'injectionPointQualifiedServiceProviders'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
wasResolved
Setter for 'wasResolved'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
resolved
Setter for 'resolved'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
resolved
Setter for 'resolved'.- 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.spi.InjectionPlan, 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
-