Class DefaultDependencyCollectionContext
- java.lang.Object
-
- org.eclipse.aether.internal.impl.collect.DefaultDependencyCollectionContext
-
- All Implemented Interfaces:
DependencyCollectionContext
final class DefaultDependencyCollectionContext extends java.lang.Object implements DependencyCollectionContext
- See Also:
DefaultDependencyCollector
-
-
Field Summary
Fields Modifier and Type Field Description private Artifactartifactprivate Dependencydependencyprivate java.util.List<Dependency>managedDependenciesprivate RepositorySystemSessionsession
-
Constructor Summary
Constructors Constructor Description DefaultDependencyCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, java.util.List<Dependency> managedDependencies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactgetArtifact()Gets the artifact whose children are to be processed next during dependency collection.DependencygetDependency()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.RepositorySystemSessiongetSession()Gets the repository system session during which the dependency collection happens.voidset(Dependency dependency, java.util.List<Dependency> managedDependencies)java.lang.StringtoString()
-
-
-
Field Detail
-
session
private final RepositorySystemSession session
-
artifact
private Artifact artifact
-
dependency
private Dependency dependency
-
managedDependencies
private java.util.List<Dependency> managedDependencies
-
-
Constructor Detail
-
DefaultDependencyCollectionContext
DefaultDependencyCollectionContext(RepositorySystemSession session, Artifact artifact, Dependency dependency, java.util.List<Dependency> managedDependencies)
-
-
Method Detail
-
getSession
public RepositorySystemSession 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
public Artifact 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
public Dependency 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
public java.util.List<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 void set(Dependency dependency, java.util.List<Dependency> managedDependencies)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-