Class DefaultDependencyCollectionContext
java.lang.Object
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollectionContext
- All Implemented Interfaces:
DependencyCollectionContext
public final class DefaultDependencyCollectionContext
extends Object
implements DependencyCollectionContext
Internal helper class for collector implementations.
-
Constructor Summary
ConstructorDescriptionDefaultDependencyCollectionContext
(RepositorySystemSession session, Artifact artifact, Dependency dependency, List<Dependency> managedDependencies) -
Method Summary
Modifier and TypeMethodDescriptionGets the artifact whose children are to be processed next during dependency collection.Gets the dependency whose children are to be processed next during dependency collection.Gets the dependency management information that was contributed by the artifact descriptor of the current dependency.Gets the repository system session during which the dependency collection happens.void
set
(Dependency dependency, List<Dependency> managedDependencies) toString()
-
Constructor Details
-
DefaultDependencyCollectionContext
public DefaultDependencyCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, List<Dependency> managedDependencies)
-
-
Method Details
-
getSession
Description copied from interface:DependencyCollectionContext
Gets the repository system session during which the dependency collection happens.- Specified by:
getSession
in interfaceDependencyCollectionContext
- Returns:
- The repository system session, never
null
.
-
getArtifact
Description copied from interface:DependencyCollectionContext
Gets the artifact whose children are to be processed next during dependency collection. For all nodes but the root, this is simply shorthand forgetDependency().getArtifact()
. In case of the root node however,DependencyCollectionContext.getDependency()
might benull
while the node still has an artifact which serves as its label and is not to be resolved.- Specified by:
getArtifact
in interfaceDependencyCollectionContext
- Returns:
- The artifact whose children are going to be processed or
null
in case of the root node without dependency and label.
-
getDependency
Description copied from interface:DependencyCollectionContext
Gets the dependency whose children are to be processed next during dependency collection.- Specified by:
getDependency
in interfaceDependencyCollectionContext
- Returns:
- The dependency whose children are going to be processed or
null
in case of the root node without dependency.
-
getManagedDependencies
Description copied from interface:DependencyCollectionContext
Gets the dependency management information that was contributed by the artifact descriptor of the current dependency.- Specified by:
getManagedDependencies
in interfaceDependencyCollectionContext
- Returns:
- The dependency management information, never
null
.
-
set
-
toString
-