Module io.helidon.inject.api
Package io.helidon.inject.api
Class DependenciesInfo.BuilderBase<BUILDER extends DependenciesInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DependenciesInfo>
java.lang.Object
io.helidon.inject.api.DependenciesInfo.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.Api,Prototype.Builder<BUILDER,,PROTOTYPE> DependenciesInfo
- Direct Known Subclasses:
DependenciesInfo.Builder
- Enclosing interface:
DependenciesInfo
public abstract static class DependenciesInfo.BuilderBase<BUILDER extends DependenciesInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DependenciesInfo>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>, DependenciesInfo
Fluent API builder base for
DependenciesInfo.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from interface io.helidon.inject.api.DependenciesInfo
DependenciesInfo.Builder, DependenciesInfo.BuilderBase<BUILDER extends DependenciesInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends DependenciesInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddServiceInfoDependencies(ServiceInfoCriteria key, Set<DependencyInfo> serviceInfoDependencies) Represents the set of dependencies for eachServiceInfo.addServiceInfoDependencies(Map<? extends ServiceInfoCriteria, ? extends Set<DependencyInfo>> serviceInfoDependencies) Represents the set of dependencies for eachServiceInfo.addServiceInfoDependency(ServiceInfoCriteria key, DependencyInfo serviceInfoDependency) Represents the set of dependencies for eachServiceInfo.default Set<DependencyInfo>Represents a flattened set of all dependencies.default List<DependencyInfo>allDependenciesFor(String elemName) Represents the list of all dependencies for a given injection point element name ordered by the element position.Clear existing value of this property.from(DependenciesInfo prototype) Update this builder from an existing prototype instance.from(DependenciesInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Optionally, the service type name aggregatingallDependencies().fromServiceTypeName(TypeName fromServiceTypeName) Optionally, the service type name aggregatingallDependencies().fromServiceTypeName(Consumer<TypeName.Builder> consumer) Optionally, the service type name aggregatingallDependencies().protected voidHandles providers and interceptors.putServiceInfoDependency(ServiceInfoCriteria key, Set<DependencyInfo> serviceInfoDependency) Represents the set of dependencies for eachServiceInfo.Represents the set of dependencies for eachServiceInfo.serviceInfoDependencies(Map<? extends ServiceInfoCriteria, ? extends Set<DependencyInfo>> serviceInfoDependencies) Represents the set of dependencies for eachServiceInfo.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, resolveBuilder, 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
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and interceptors. -
validatePrototype
protected void validatePrototype()Validates required properties. -
serviceInfoDependencies
public BUILDER serviceInfoDependencies(Map<? extends ServiceInfoCriteria, ? extends Set<DependencyInfo>> serviceInfoDependencies) Represents the set of dependencies for eachServiceInfo. This method replaces all values with the new ones.- Parameters:
serviceInfoDependencies- map from the service info to its dependencies- Returns:
- updated builder instance
- See Also:
-
addServiceInfoDependencies
public BUILDER addServiceInfoDependencies(Map<? extends ServiceInfoCriteria, ? extends Set<DependencyInfo>> serviceInfoDependencies) Represents the set of dependencies for eachServiceInfo. This method keeps existing values, then puts all new values into the map.- Parameters:
serviceInfoDependencies- map from the service info to its dependencies- Returns:
- updated builder instance
- See Also:
-
addServiceInfoDependency
public BUILDER addServiceInfoDependency(ServiceInfoCriteria key, DependencyInfo serviceInfoDependency) Represents the set of dependencies for eachServiceInfo. This method adds a new value to the map value, or creates a new value.- Parameters:
key- key to add toserviceInfoDependency- additional value for the key- Returns:
- updated builder instance
- See Also:
-
addServiceInfoDependencies
public BUILDER addServiceInfoDependencies(ServiceInfoCriteria key, Set<DependencyInfo> serviceInfoDependencies) Represents the set of dependencies for eachServiceInfo. This method adds a new value to the map value, or creates a new value.- Parameters:
key- key to add toserviceInfoDependencies- additional values for the key- Returns:
- updated builder instance
- See Also:
-
putServiceInfoDependency
public BUILDER putServiceInfoDependency(ServiceInfoCriteria key, Set<DependencyInfo> serviceInfoDependency) Represents the set of dependencies for eachServiceInfo. This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key- key to add or replaceserviceInfoDependency- new value for the key- Returns:
- updated builder instance
- See Also:
-
clearFromServiceTypeName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
fromServiceTypeName
Optionally, the service type name aggregatingallDependencies().- Parameters:
fromServiceTypeName- the optional service type name for which these dependencies belong- Returns:
- updated builder instance
- See Also:
-
fromServiceTypeName
Optionally, the service type name aggregatingallDependencies().- Parameters:
consumer- the optional service type name for which these dependencies belong- Returns:
- updated builder instance
- See Also:
-
serviceInfoDependencies
Represents the set of dependencies for eachServiceInfo.- Returns:
- the service info dependencies
-
fromServiceTypeName
Optionally, the service type name aggregatingallDependencies().- Returns:
- the from service type name
-
toString
-
allDependencies
Represents a flattened set of all dependencies.- Returns:
- the flattened set of all dependencies
-
allDependenciesFor
Represents the list of all dependencies for a given injection point element name ordered by the element position.- Parameters:
elemName- the element name of the injection point- Returns:
- the list of all dependencies got a given element name of a given injection point
-