Package org.eclipse.aether.collection
Interface DependencyCollectionContext
-
- All Known Implementing Classes:
DefaultDependencyCollectionContext,TestDependencyCollectionContext
public interface DependencyCollectionContextA context used during dependency collection to update the dependency manager, selector and traverser.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getSession
RepositorySystemSession getSession()
Gets the repository system session during which the dependency collection happens.- Returns:
- The repository system session, never
null.
-
getArtifact
Artifact getArtifact()
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,getDependency()might benullwhile the node still has an artifact which serves as its label and is not to be resolved.- Returns:
- The artifact whose children are going to be processed or
nullin case of the root node without dependency and label.
-
getDependency
Dependency getDependency()
Gets the dependency whose children are to be processed next during dependency collection.- Returns:
- The dependency whose children are going to be processed or
nullin case of the root node without dependency.
-
getManagedDependencies
java.util.List<Dependency> getManagedDependencies()
Gets the dependency management information that was contributed by the artifact descriptor of the current dependency.- Returns:
- The dependency management information, never
null.
-
-