public final class DefaultDependencyCollectionContext extends Object implements DependencyCollectionContext
| Constructor and Description |
|---|
DefaultDependencyCollectionContext(RepositorySystemSession session,
Artifact artifact,
Dependency dependency,
List<Dependency> managedDependencies) |
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the artifact whose children are to be processed next during dependency collection.
|
Dependency |
getDependency()
Gets the dependency whose children are to be processed next during dependency collection.
|
List<Dependency> |
getManagedDependencies()
Gets the dependency management information that was contributed by the artifact descriptor of the current
dependency.
|
RepositorySystemSession |
getSession()
Gets the repository system session during which the dependency collection happens.
|
void |
set(Dependency dependency,
List<Dependency> managedDependencies) |
String |
toString() |
public DefaultDependencyCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, List<Dependency> managedDependencies)
public RepositorySystemSession getSession()
DependencyCollectionContextgetSession in interface DependencyCollectionContextnull.public Artifact getArtifact()
DependencyCollectionContextgetDependency().getArtifact(). In case of the root node however,
DependencyCollectionContext.getDependency() might be null while the node still has an artifact which serves as its label and
is not to be resolved.getArtifact in interface DependencyCollectionContextnull in case of the root node without
dependency and label.public Dependency getDependency()
DependencyCollectionContextgetDependency in interface DependencyCollectionContextnull in case of the root node without
dependency.public List<Dependency> getManagedDependencies()
DependencyCollectionContextgetManagedDependencies in interface DependencyCollectionContextnull.public void set(Dependency dependency, List<Dependency> managedDependencies)
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.