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
ConstructorsConstructorDescriptionDefaultDependencyCollectionContext(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.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:DependencyCollectionContextGets the repository system session during which the dependency collection happens.- Specified by:
getSessionin interfaceDependencyCollectionContext- Returns:
- The repository system session, never
null.
-
getArtifact
Description copied from interface:DependencyCollectionContextGets 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 benullwhile the node still has an artifact which serves as its label and is not to be resolved.- Specified by:
getArtifactin interfaceDependencyCollectionContext- Returns:
- The artifact whose children are going to be processed or
nullin case of the root node without dependency and label.
-
getDependency
Description copied from interface:DependencyCollectionContextGets the dependency whose children are to be processed next during dependency collection.- Specified by:
getDependencyin interfaceDependencyCollectionContext- Returns:
- The dependency whose children are going to be processed or
nullin case of the root node without dependency.
-
getManagedDependencies
Description copied from interface:DependencyCollectionContextGets the dependency management information that was contributed by the artifact descriptor of the current dependency.- Specified by:
getManagedDependenciesin interfaceDependencyCollectionContext- Returns:
- The dependency management information, never
null.
-
set
public DefaultDependencyCollectionContext set(Dependency dependency, List<Dependency> managedDependencies) -
toString
-