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()
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 List<Dependency> getManagedDependencies()
DependencyCollectionContext
getManagedDependencies
in interface DependencyCollectionContext
null
.public void set(Dependency dependency, List<Dependency> managedDependencies)
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.