Class DataPool
java.lang.Object
org.eclipse.aether.internal.impl.collect.DataPool
Internal helper class for collector implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classprivate static final class(package private) static final class(package private) static classstatic final class(package private) static final class(package private) static final classprivate static classprivate static interfaceprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final DataPool.InternPool<Artifact, Artifact> Artifact interning pool, lives across session (if session carries non-nullRepositoryCache).private static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final ConcurrentHashMap<Object, DataPool.Constraint> Constraint cache, lives during single collection invocation (same as this DataPool instance).private final DataPool.InternPool<Dependency, Dependency> Dependency interning pool, lives across session (if session carries non-nullRepositoryCache).private static final Stringprivate static final Stringprivate final DataPool.InternPool<List<Dependency>, List<Dependency>> Dependencylist interning pool, lives across session (if session carries non-nullRepositoryCache).private final DataPool.InternPool<DataPool.DescriptorKey, DataPool.Descriptor> Descriptor interning pool, lives across session (if session carries non-nullRepositoryCache).private static final Stringprivate static final Stringprivate final booleanprivate final booleanstatic final ArtifactDescriptorResultprivate final ConcurrentHashMap<Object, List<DependencyNode>> DependencyNode cache, lives during single collection invocation (same as this DataPool instance).private static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <K,V> DataPool.InternPool <K, V> createPool(String type) getChildren(Object key) getConstraint(Object key, VersionRangeRequest request) getDescriptor(DataPool.DescriptorKey key, ArtifactDescriptorRequest request) private List<Dependency> intern(List<Dependency> dependencies) intern(Dependency dependency) voidputChildren(Object key, List<DependencyNode> children) voidputConstraint(Object key, VersionRangeResult result) voidvoidputDescriptor(DataPool.DescriptorKey key, ArtifactDescriptorResult result) toKey(Artifact artifact, List<RemoteRepository> repositories, DependencySelector selector, DependencyManager manager, DependencyTraverser traverser, VersionFilter filter) toKey(ArtifactDescriptorRequest request) toKey(VersionRangeRequest request)
-
Field Details
-
CONFIG_PROP_COLLECTOR_POOL_ARTIFACT
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_DESCRIPTOR
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTS
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_DEPENDENCIES
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIES
private static final String CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIES- See Also:
-
ARTIFACT_POOL
-
DEPENDENCY_POOL
-
DESCRIPTORS
-
DEPENDENCY_LISTS_POOL
-
NO_DESCRIPTOR
-
artifacts
Artifact interning pool, lives across session (if session carries non-nullRepositoryCache). -
dependencies
Dependency interning pool, lives across session (if session carries non-nullRepositoryCache). -
descriptors
Descriptor interning pool, lives across session (if session carries non-nullRepositoryCache). -
dependencyLists
Dependencylist interning pool, lives across session (if session carries non-nullRepositoryCache). -
constraints
Constraint cache, lives during single collection invocation (same as this DataPool instance). -
nodes
DependencyNode cache, lives during single collection invocation (same as this DataPool instance). -
internArtifactDescriptorDependencies
private final boolean internArtifactDescriptorDependencies -
internArtifactDescriptorManagedDependencies
private final boolean internArtifactDescriptorManagedDependencies -
HARD
- See Also:
-
WEAK
- See Also:
-
-
Constructor Details
-
DataPool
-
-
Method Details
-
intern
-
intern
-
toKey
-
getDescriptor
public ArtifactDescriptorResult getDescriptor(DataPool.DescriptorKey key, ArtifactDescriptorRequest request) -
putDescriptor
-
putDescriptor
-
intern
-
toKey
-
getConstraint
-
putConstraint
-
toKey
public Object toKey(Artifact artifact, List<RemoteRepository> repositories, DependencySelector selector, DependencyManager manager, DependencyTraverser traverser, VersionFilter filter) -
getChildren
-
putChildren
-
createPool
-