Class DefaultDependencyCollector
java.lang.Object
org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector
- All Implemented Interfaces:
DependencyCollector,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultDependencyCollector
extends Object
implements DependencyCollector, org.eclipse.aether.spi.locator.Service
Default implementation of
DependencyCollector that merely indirect to selected delegate.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.SL is to be removed. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.collection.CollectResultcollectDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.collection.CollectRequest request) Collects the transitive dependencies of some artifacts and builds a dependency graph.voidinitService(org.eclipse.aether.spi.locator.ServiceLocator locator)
-
Constructor Details
-
DefaultDependencyCollector
Deprecated.SL is to be removed.Default ctor for SL. -
DefaultDependencyCollector
-
-
Method Details
-
initService
- Specified by:
initServicein interfaceorg.eclipse.aether.spi.locator.Service
-
collectDependencies
public org.eclipse.aether.collection.CollectResult collectDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.collection.CollectRequest request) throws org.eclipse.aether.collection.DependencyCollectionException Description copied from interface:DependencyCollectorCollects the transitive dependencies of some artifacts and builds a dependency graph. Note that this operation is only concerned about determining the coordinates of the transitive dependencies and does not actually resolve the artifact files. The supplied session carries various hooks to customize the dependency graph that must be invoked throughout the operation.- Specified by:
collectDependenciesin interfaceDependencyCollector- Parameters:
session- The repository session, must not benull.request- The collection request, must not benull.- Returns:
- The collection result, never
null. - Throws:
org.eclipse.aether.collection.DependencyCollectionException- If the dependency tree could not be built.- See Also:
-
RepositorySystemSession.getDependencyTraverser()RepositorySystemSession.getDependencyManager()RepositorySystemSession.getDependencySelector()RepositorySystemSession.getVersionFilter()RepositorySystemSession.getDependencyGraphTransformer()RepositorySystem.collectDependencies(RepositorySystemSession, CollectRequest)
-