org.sonatype.aether.collection
Interface DependencyCollectionContext


public interface DependencyCollectionContext

A context used during dependency collection to update the dependency manager, selector and traverser.

Author:
Benjamin Bentmann
See Also:
DependencyManager.deriveChildManager(DependencyCollectionContext), DependencyTraverser.deriveChildTraverser(DependencyCollectionContext), DependencySelector.deriveChildSelector(DependencyCollectionContext)

Method Summary
 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.
 

Method Detail

getSession

RepositorySystemSession getSession()
Gets the repository system session during which the dependency collection happens.

Returns:
The repository system session, never null.

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 null in 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.


Copyright © 2010 Sonatype, Inc.. All Rights Reserved.