public class DependencyContainer extends BuildItemContainer<String,Dependency>
BuildItemContainer implementation for dependencies.| Constructor and Description |
|---|
DependencyContainer(Function<String,Dependency> itemResolver)
Create an instance with the specified
itemResolver. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
Dependency.Builder<?> builder)
|
void |
add(String id,
String groupId,
String artifactId,
DependencyScope scope)
Register a
Dependency with the specified id and a managed version. |
public DependencyContainer(Function<String,Dependency> itemResolver)
itemResolver.itemResolver - the function that returns a Dependency based on an
identifier.public void add(String id, String groupId, String artifactId, DependencyScope scope)
Dependency with the specified id and a managed version.id - the id of the dependencygroupId - the groupIdartifactId - the artifactIdscope - the DependencyScopepublic void add(String id, Dependency.Builder<?> builder)
id - the id of the dependencybuilder - the state of the dependencyCopyright © 2021 Pivotal Software, Inc.. All rights reserved.