Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractDependenciesInfo.Builder<B extends AbstractDependenciesInfo.Builder<B,T>,T extends DependenciesInfo>
java.lang.Object
io.helidon.pico.api.AbstractDependenciesInfo.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> DependenciesInfo,Supplier<T>
- Direct Known Subclasses:
DefaultDependenciesInfo.Builder
- Enclosing class:
AbstractDependenciesInfo
public abstract static class AbstractDependenciesInfo.Builder<B extends AbstractDependenciesInfo.Builder<B,T>,T extends DependenciesInfo>
extends Object
implements DependenciesInfo, Builder<B,T>
Fluent API builder for
T.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.pico.api.DependenciesInfo
DependenciesInfo.Comparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MapField value forjava.util.Map<io.helidon.pico.api.ServiceInfoCriteria, java.util.Set<io.helidon.pico.api.DependencyInfo>> serviceInfoDependencies(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Setter for 'serviceInfoDependencies'.Setter for 'serviceInfoDependencies'.Setter for 'serviceInfoDependencies'.Optionally, the service type name aggregatingDependenciesInfo.allDependencies().Setter for 'fromServiceTypeName'.Setter for 'fromServiceTypeName'.Represents the set of dependencies for eachServiceInfo.Setter for 'serviceInfoDependencies'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.DependenciesInfo, calling theAttributeVisitorfor each.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.pico.api.DependenciesInfo
allDependencies, allDependenciesFor
-
Field Details
-
serviceInfoDependencies
Field value forjava.util.Map<io.helidon.pico.api.ServiceInfoCriteria, java.util.Set<io.helidon.pico.api.DependencyInfo>> serviceInfoDependencies().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
serviceInfoDependencies
Description copied from interface:DependenciesInfoRepresents the set of dependencies for eachServiceInfo.- Specified by:
serviceInfoDependenciesin interfaceDependenciesInfo- Returns:
- map from the service info to its dependencies
-
fromServiceTypeName
Description copied from interface:DependenciesInfoOptionally, the service type name aggregatingDependenciesInfo.allDependencies().- Specified by:
fromServiceTypeNamein interfaceDependenciesInfo- Returns:
- the optional service type name for which these dependencies belong
-
serviceInfoDependencies
Setter for 'serviceInfoDependencies'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addServiceInfoDependencies
Setter for 'serviceInfoDependencies'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addServiceInfoDependency
Setter for 'serviceInfoDependencies'.- Parameters:
key- the keyval- the new value- Returns:
- this fluent builder
-
addServiceInfoDependency
Setter for 'serviceInfoDependencies'.- Parameters:
key- the keyval- the new value- Returns:
- this fluent builder
-
fromServiceTypeName
Setter for 'fromServiceTypeName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
fromServiceTypeName
Setter for 'fromServiceTypeName'.- 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.DependenciesInfo, 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
-