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.Builder<BUILDER,PROTOTYPE>
- 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>
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddServiceInfoDependencies(ServiceInfoCriteria key, Set<DependencyInfo> serviceInfoDependencies) This method adds a new value to the map value, or creates a new value.addServiceInfoDependencies(Map<? extends ServiceInfoCriteria, Set<DependencyInfo>> serviceInfoDependencies) This method keeps existing values, then puts all new values into the map.addServiceInfoDependency(ServiceInfoCriteria key, DependencyInfo serviceInfoDependency) This method adds a new value to the map value, or creates a new value.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 decorators.putServiceInfoDependency(ServiceInfoCriteria key, Set<DependencyInfo> serviceInfoDependency) This method adds a new value to the map, or replaces it if the key already exists.Represents the set of dependencies for eachServiceInfo.serviceInfoDependencies(Map<? extends ServiceInfoCriteria, Set<DependencyInfo>> serviceInfoDependencies) This method replaces all values with the new ones.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
-
serviceInfoDependencies
public BUILDER serviceInfoDependencies(Map<? extends ServiceInfoCriteria, Set<DependencyInfo>> serviceInfoDependencies) 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, Set<DependencyInfo>> serviceInfoDependencies) 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) 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) 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) 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
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-