Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractDependencyInfo.Builder<B extends AbstractDependencyInfo.Builder<B,T>,T extends DependencyInfo>
java.lang.Object
io.helidon.pico.api.AbstractDependencyInfo.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> DependencyInfo,Supplier<T>
- Direct Known Subclasses:
DefaultDependencyInfo.Builder
- Enclosing class:
AbstractDependencyInfo
public abstract static class AbstractDependencyInfo.Builder<B extends AbstractDependencyInfo.Builder<B,T>,T extends DependencyInfo>
extends Object
implements DependencyInfo, Builder<B,T>
Fluent API builder for
T.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SetField value forjava.util.Set<? extends io.helidon.pico.api.InjectionPointInfo> injectionPointDependencies(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.addInjectionPointDependencies(Collection<? extends InjectionPointInfo> val) Setter for 'injectionPointDependencies'.Setter for 'injectionPointDependencies'.The service info describing what the injection point dependencies are dependent upon.Setter for 'dependencyTo'.Set<? extends InjectionPointInfo>The set of injection points that depends uponDependencyInfo.dependencyTo().injectionPointDependencies(Collection<? extends InjectionPointInfo> val) Setter for 'injectionPointDependencies'.TheServiceProviderthat this dependency is optional resolved and bound to.resolvedTo(ServiceProvider<?> val) Setter for 'resolvedTo'.resolvedTo(Optional<ServiceProvider<?>> val) Setter for 'resolvedTo'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.DependencyInfo, calling theAttributeVisitorfor each.
-
Field Details
-
injectionPointDependencies
Field value forjava.util.Set<? extends io.helidon.pico.api.InjectionPointInfo> injectionPointDependencies().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
dependencyTo
Description copied from interface:DependencyInfoThe service info describing what the injection point dependencies are dependent upon.- Specified by:
dependencyToin interfaceDependencyInfo- Returns:
- the service info dependency
-
injectionPointDependencies
Description copied from interface:DependencyInfoThe set of injection points that depends uponDependencyInfo.dependencyTo().- Specified by:
injectionPointDependenciesin interfaceDependencyInfo- Returns:
- the set of dependencies
-
resolvedTo
Description copied from interface:DependencyInfoTheServiceProviderthat this dependency is optional resolved and bound to. All dependencies fromDependencyInfo.injectionPointDependencies()will be bound to this resolution.- Specified by:
resolvedToin interfaceDependencyInfo- Returns:
- the optional resolved and bounded service provider
-
dependencyTo
Setter for 'dependencyTo'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPointDependencies
Setter for 'injectionPointDependencies'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addInjectionPointDependencies
Setter for 'injectionPointDependencies'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addInjectionPointDependency
Setter for 'injectionPointDependencies'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
resolvedTo
Setter for 'resolvedTo'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
resolvedTo
Setter for 'resolvedTo'.- 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.DependencyInfo, 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
-