final class TestDependencyCollectionContext extends java.lang.Object implements DependencyCollectionContext
Modifier and Type | Field and Description |
---|---|
private Artifact |
artifact |
private Dependency |
dependency |
private java.util.List<Dependency> |
managedDependencies |
private RepositorySystemSession |
session |
Constructor and Description |
---|
TestDependencyCollectionContext(RepositorySystemSession session,
Artifact artifact,
Dependency dependency,
java.util.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.
|
java.util.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.
|
java.lang.String |
toString() |
private final RepositorySystemSession session
private final Artifact artifact
private final Dependency dependency
private final java.util.List<Dependency> managedDependencies
public TestDependencyCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, java.util.List<Dependency> managedDependencies)
public RepositorySystemSession getSession()
DependencyCollectionContext
getSession
in interface DependencyCollectionContext
null
.public Artifact getArtifact()
DependencyCollectionContext
getDependency().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 DependencyCollectionContext
null
in case of the root node without
dependency and label.public Dependency getDependency()
DependencyCollectionContext
getDependency
in interface DependencyCollectionContext
null
in case of the root node without
dependency.public java.util.List<Dependency> getManagedDependencies()
DependencyCollectionContext
getManagedDependencies
in interface DependencyCollectionContext
null
.public java.lang.String toString()
toString
in class java.lang.Object