@Named public class DefaultDependencyCollector extends Object implements DependencyCollector, Service
Constructor and Description |
---|
DefaultDependencyCollector() |
Modifier and Type | Method and Description |
---|---|
CollectResult |
collectDependencies(RepositorySystemSession session,
CollectRequest request)
Collects the transitive dependencies of some artifacts and builds a dependency graph.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
DefaultDependencyCollector |
setArtifactDescriptorReader(ArtifactDescriptorReader artifactDescriptorReader) |
DefaultDependencyCollector |
setLoggerFactory(LoggerFactory loggerFactory) |
DefaultDependencyCollector |
setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager) |
DefaultDependencyCollector |
setVersionRangeResolver(VersionRangeResolver versionRangeResolver) |
public DefaultDependencyCollector()
public void initService(ServiceLocator locator)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public DefaultDependencyCollector setLoggerFactory(LoggerFactory loggerFactory)
public DefaultDependencyCollector setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
public DefaultDependencyCollector setArtifactDescriptorReader(ArtifactDescriptorReader artifactDescriptorReader)
public DefaultDependencyCollector setVersionRangeResolver(VersionRangeResolver versionRangeResolver)
public CollectResult collectDependencies(RepositorySystemSession session, CollectRequest request) throws DependencyCollectionException
DependencyCollector
collectDependencies
in interface DependencyCollector
session
- The repository session, must not be null
.request
- The collection request, must not be null
.null
.DependencyCollectionException
- If the dependency tree could not be built.RepositorySystemSession.getDependencyTraverser()
,
RepositorySystemSession.getDependencyManager()
,
RepositorySystemSession.getDependencySelector()
,
RepositorySystemSession.getVersionFilter()
,
RepositorySystemSession.getDependencyGraphTransformer()
,
RepositorySystem.collectDependencies(RepositorySystemSession, CollectRequest)
Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.