Class BfDependencyCollector
- java.lang.Object
-
- org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate
-
- org.eclipse.aether.internal.impl.collect.bf.BfDependencyCollector
-
- All Implemented Interfaces:
DependencyCollector
@Singleton @Named("bf") public class BfDependencyCollector extends DependencyCollectorDelegateBreadth-firstDependencyCollector- Since:
- 1.8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate
DependencyCollectorDelegate.Results
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_SKIPPERThe key in the repository session'sconfiguration propertiesused to store aStringflag controlling the resolver's skip mode.static java.lang.StringCONFIG_PROP_THREADSThe count of threads to be used when collecting POMs in parallel.static java.lang.StringDEFAULT_SKIPPERThe default value forCONFIG_PROP_SKIPPER,true.static intDEFAULT_THREADSThe default value forCONFIG_PROP_THREADS, default value 5.static java.lang.StringNAMEstatic java.lang.StringNONE_SKIPPERstatic java.lang.StringVERSIONED_SKIPPERstatic java.lang.StringVERSIONLESS_SKIPPER-
Fields inherited from class org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate
artifactDecoratorFactories, CONFIG_PROP_MAX_CYCLES, CONFIG_PROP_MAX_EXCEPTIONS, CONFIG_PROP_MAX_RUNS, DEFAULT_MAX_CYCLES, DEFAULT_MAX_EXCEPTIONS, DEFAULT_MAX_RUNS, descriptorReader, logger, remoteRepositoryManager, versionRangeResolver
-
-
Constructor Summary
Constructors Constructor Description BfDependencyCollector(RemoteRepositoryManager remoteRepositoryManager, ArtifactDescriptorReader artifactDescriptorReader, VersionRangeResolver versionRangeResolver, java.util.Map<java.lang.String,org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory> artifactDecoratorFactories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCollectDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RequestTrace trace, DataPool pool, DefaultDependencyCollectionContext context, DefaultVersionFilterContext versionContext, org.eclipse.aether.collection.CollectRequest request, org.eclipse.aether.graph.DependencyNode node, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, java.util.List<org.eclipse.aether.graph.Dependency> dependencies, java.util.List<org.eclipse.aether.graph.Dependency> managedDependencies, DependencyCollectorDelegate.Results results)-
Methods inherited from class org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate
cachedResolveRangeResult, collectDependencies, collectStepTrace, createArtifactDescriptorRequest, createDependencyNode, createDependencyNode, createVersionRangeRequest, filterVersions, getId, getRemoteRepositories, isLackingDescriptor, mergeDeps, resolveCachedArtifactDescriptor, setUpSession
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
CONFIG_PROP_SKIPPER
public static final java.lang.String CONFIG_PROP_SKIPPER
The key in the repository session'sconfiguration propertiesused to store aStringflag controlling the resolver's skip mode. Supported modes are "versionless" (default), "versioned" and "false" to not use skipper. The first two modes are defining "function" how to map artifact coordinates to (String) key while deciding "skip" logic. The "versionless" usesG:A:C:Ecoordinate elements only (without version), while "versioned" uses allG:A:C:E:Vartifact coordinates.- Since:
- 1.8.0
- See Also:
- Constant Field Values
-
NONE_SKIPPER
public static final java.lang.String NONE_SKIPPER
- See Also:
- Constant Field Values
-
VERSIONLESS_SKIPPER
public static final java.lang.String VERSIONLESS_SKIPPER
- See Also:
- Constant Field Values
-
VERSIONED_SKIPPER
public static final java.lang.String VERSIONED_SKIPPER
- See Also:
- Constant Field Values
-
DEFAULT_SKIPPER
public static final java.lang.String DEFAULT_SKIPPER
The default value forCONFIG_PROP_SKIPPER,true.- Since:
- 1.8.0
- See Also:
- Constant Field Values
-
CONFIG_PROP_THREADS
public static final java.lang.String CONFIG_PROP_THREADS
The count of threads to be used when collecting POMs in parallel.- Since:
- 1.9.0
- See Also:
- Constant Field Values
-
DEFAULT_THREADS
public static final int DEFAULT_THREADS
The default value forCONFIG_PROP_THREADS, default value 5.- Since:
- 1.9.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BfDependencyCollector
@Inject public BfDependencyCollector(RemoteRepositoryManager remoteRepositoryManager, ArtifactDescriptorReader artifactDescriptorReader, VersionRangeResolver versionRangeResolver, java.util.Map<java.lang.String,org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory> artifactDecoratorFactories)
-
-
Method Detail
-
doCollectDependencies
protected void doCollectDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RequestTrace trace, DataPool pool, DefaultDependencyCollectionContext context, DefaultVersionFilterContext versionContext, org.eclipse.aether.collection.CollectRequest request, org.eclipse.aether.graph.DependencyNode node, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, java.util.List<org.eclipse.aether.graph.Dependency> dependencies, java.util.List<org.eclipse.aether.graph.Dependency> managedDependencies, DependencyCollectorDelegate.Results results) throws org.eclipse.aether.collection.DependencyCollectionException
- Specified by:
doCollectDependenciesin classDependencyCollectorDelegate- Throws:
org.eclipse.aether.collection.DependencyCollectionException
-
-