final class DefaultDependencyCollectionContext extends java.lang.Object implements DependencyCollectionContext
DefaultDependencyCollector| Modifier and Type | Field and Description |
|---|---|
private Artifact |
artifact |
private Dependency |
dependency |
private java.util.List<Dependency> |
managedDependencies |
private RepositorySystemSession |
session |
| Constructor and Description |
|---|
DefaultDependencyCollectionContext(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.
|
void |
set(Dependency dependency,
java.util.List<Dependency> managedDependencies) |
java.lang.String |
toString() |
private final RepositorySystemSession session
private Artifact artifact
private Dependency dependency
private java.util.List<Dependency> managedDependencies
DefaultDependencyCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, java.util.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 java.util.List<Dependency> getManagedDependencies()
DependencyCollectionContextgetManagedDependencies in interface DependencyCollectionContextnull.public void set(Dependency dependency, java.util.List<Dependency> managedDependencies)
public java.lang.String toString()
toString in class java.lang.Object