Module io.helidon.inject.api
Package io.helidon.inject.api
Class DependencyInfo.BuilderBase<BUILDER extends DependencyInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DependencyInfo>
java.lang.Object
io.helidon.inject.api.DependencyInfo.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:
DependencyInfo.Builder
- Enclosing interface:
DependencyInfo
public abstract static class DependencyInfo.BuilderBase<BUILDER extends DependencyInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DependencyInfo>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
DependencyInfo.-
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 TypeMethodDescriptionaddInjectionPointDependencies(Set<? extends InjectionPointInfo> injectionPointDependencies) The set of injection points that depends upondependencyTo().addInjectionPointDependency(InjectionPointInfo injectionPointDependency) The set of injection points that depends upondependencyTo().The set of injection points that depends upondependencyTo().Clear existing value of this property.The service info describing what the injection point dependencies are dependent upon.dependencyTo(ServiceInfoCriteria dependencyTo) The service info describing what the injection point dependencies are dependent upon.dependencyTo(Consumer<ServiceInfoCriteria.Builder> consumer) The service info describing what the injection point dependencies are dependent upon.dependencyTo(Supplier<? extends ServiceInfoCriteria> supplier) The service info describing what the injection point dependencies are dependent upon.Name of the dependency location, such as a field name, or argument name.elementName(String elementName) Name of the dependency location, such as a field name, or argument name.from(DependencyInfo prototype) Update this builder from an existing prototype instance.from(DependencyInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.The set of injection points that depends upondependencyTo().injectionPointDependencies(Set<? extends InjectionPointInfo> injectionPointDependencies) The set of injection points that depends upondependencyTo().protected voidHandles providers and decorators.TheServiceProviderthat this dependency is optional resolved and bound to.resolvedTo(ServiceProvider<?> resolvedTo) TheServiceProviderthat this dependency is optional resolved and bound to.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
-
elementName
Name of the dependency location, such as a field name, or argument name.- Parameters:
elementName- name of the element of this dependency- Returns:
- updated builder instance
- See Also:
-
dependencyTo
The service info describing what the injection point dependencies are dependent upon.- Parameters:
dependencyTo- the service info dependency- Returns:
- updated builder instance
- See Also:
-
dependencyTo
The service info describing what the injection point dependencies are dependent upon.- Parameters:
consumer- consumer of builder for the service info dependency- Returns:
- updated builder instance
- See Also:
-
dependencyTo
The service info describing what the injection point dependencies are dependent upon.- Parameters:
supplier- supplier of the service info dependency- Returns:
- updated builder instance
- See Also:
-
injectionPointDependencies
public BUILDER injectionPointDependencies(Set<? extends InjectionPointInfo> injectionPointDependencies) The set of injection points that depends upondependencyTo().- Parameters:
injectionPointDependencies- the set of dependencies- Returns:
- updated builder instance
- See Also:
-
addInjectionPointDependencies
public BUILDER addInjectionPointDependencies(Set<? extends InjectionPointInfo> injectionPointDependencies) The set of injection points that depends upondependencyTo().- Parameters:
injectionPointDependencies- the set of dependencies- Returns:
- updated builder instance
- See Also:
-
addInjectionPointDependency
The set of injection points that depends upondependencyTo().- Parameters:
injectionPointDependency- the set of dependencies- Returns:
- updated builder instance
- See Also:
-
addInjectionPointDependency
The set of injection points that depends upondependencyTo().- Parameters:
consumer- the set of dependencies- Returns:
- updated builder instance
- See Also:
-
clearResolvedTo
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
resolvedTo
TheServiceProviderthat this dependency is optional resolved and bound to. All dependencies frominjectionPointDependencies()will be bound to this resolution.- Parameters:
resolvedTo- the optional resolved and bounded service provider- Returns:
- updated builder instance
- See Also:
-
elementName
Name of the dependency location, such as a field name, or argument name.- Returns:
- the element name
-
dependencyTo
The service info describing what the injection point dependencies are dependent upon.- Returns:
- the dependency to
-
injectionPointDependencies
The set of injection points that depends upondependencyTo().- Returns:
- the injection point dependencies
-
resolvedTo
TheServiceProviderthat this dependency is optional resolved and bound to. All dependencies frominjectionPointDependencies()will be bound to this resolution.- Returns:
- the resolved to
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-