Class DataPool
- java.lang.Object
-
- org.eclipse.aether.internal.impl.collect.DataPool
-
public final class DataPool extends java.lang.Object
Internal helper class for collector implementations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataPool.DescriptorKey
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_COLLECTOR_POOL_ARTIFACTFlag controlling interning data pool type used by dependency collector for Artifact instances, matters for heap consumption.static java.lang.StringCONFIG_PROP_COLLECTOR_POOL_DEPENDENCYFlag controlling interning data pool type used by dependency collector for Dependency instances, matters for heap consumption.static java.lang.StringCONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTSFlag controlling interning data pool type used by dependency lists collector for ArtifactDescriptor (POM) instances, matters for heap consumption.static java.lang.StringCONFIG_PROP_COLLECTOR_POOL_DESCRIPTORFlag controlling interning data pool type used by dependency collector for ArtifactDescriptor (POM) instances, matters for heap consumption.static java.lang.StringCONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_DEPENDENCIESFlag controlling interning artifact descriptor dependencies.static java.lang.StringCONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIESFlag controlling interning artifact descriptor managed dependencies.static java.lang.StringCONFIG_PROPS_PREFIXstatic java.lang.StringHARDstatic org.eclipse.aether.resolution.ArtifactDescriptorResultNO_DESCRIPTORstatic java.lang.StringWEAK
-
Constructor Summary
Constructors Constructor Description DataPool(org.eclipse.aether.RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.eclipse.aether.graph.DependencyNode>getChildren(java.lang.Object key)org.eclipse.aether.resolution.VersionRangeResultgetConstraint(java.lang.Object key, org.eclipse.aether.resolution.VersionRangeRequest request)org.eclipse.aether.resolution.ArtifactDescriptorResultgetDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorRequest request)org.eclipse.aether.artifact.Artifactintern(org.eclipse.aether.artifact.Artifact artifact)org.eclipse.aether.graph.Dependencyintern(org.eclipse.aether.graph.Dependency dependency)voidputChildren(java.lang.Object key, java.util.List<org.eclipse.aether.graph.DependencyNode> children)voidputConstraint(java.lang.Object key, org.eclipse.aether.resolution.VersionRangeResult result)voidputDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorException e)voidputDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorResult result)java.lang.ObjecttoKey(org.eclipse.aether.artifact.Artifact artifact, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.collection.DependencySelector selector, org.eclipse.aether.collection.DependencyManager manager, org.eclipse.aether.collection.DependencyTraverser traverser, org.eclipse.aether.collection.VersionFilter filter)DataPool.DescriptorKeytoKey(org.eclipse.aether.resolution.ArtifactDescriptorRequest request)java.lang.ObjecttoKey(org.eclipse.aether.resolution.VersionRangeRequest request)
-
-
-
Field Detail
-
CONFIG_PROPS_PREFIX
public static final java.lang.String CONFIG_PROPS_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_PROP_COLLECTOR_POOL_ARTIFACT
public static final java.lang.String CONFIG_PROP_COLLECTOR_POOL_ARTIFACT
Flag controlling interning data pool type used by dependency collector for Artifact instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.5
- See Also:
- Constant Field Values
-
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY
public static final java.lang.String CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY
Flag controlling interning data pool type used by dependency collector for Dependency instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.5
- See Also:
- Constant Field Values
-
CONFIG_PROP_COLLECTOR_POOL_DESCRIPTOR
public static final java.lang.String CONFIG_PROP_COLLECTOR_POOL_DESCRIPTOR
Flag controlling interning data pool type used by dependency collector for ArtifactDescriptor (POM) instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.5
- See Also:
- Constant Field Values
-
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTS
public static final java.lang.String CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTS
Flag controlling interning data pool type used by dependency lists collector for ArtifactDescriptor (POM) instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.22
- See Also:
- Constant Field Values
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_DEPENDENCIES
public static final java.lang.String CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_DEPENDENCIES
Flag controlling interning artifact descriptor dependencies.- Since:
- 1.9.22
- See Also:
- Constant Field Values
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIES
public static final java.lang.String CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIES
Flag controlling interning artifact descriptor managed dependencies.- Since:
- 1.9.22
- See Also:
- Constant Field Values
-
NO_DESCRIPTOR
public static final org.eclipse.aether.resolution.ArtifactDescriptorResult NO_DESCRIPTOR
-
HARD
public static final java.lang.String HARD
- See Also:
- Constant Field Values
-
WEAK
public static final java.lang.String WEAK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataPool
public DataPool(org.eclipse.aether.RepositorySystemSession session)
-
-
Method Detail
-
intern
public org.eclipse.aether.artifact.Artifact intern(org.eclipse.aether.artifact.Artifact artifact)
-
intern
public org.eclipse.aether.graph.Dependency intern(org.eclipse.aether.graph.Dependency dependency)
-
toKey
public DataPool.DescriptorKey toKey(org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
-
getDescriptor
public org.eclipse.aether.resolution.ArtifactDescriptorResult getDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
-
putDescriptor
public void putDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorResult result)
-
putDescriptor
public void putDescriptor(DataPool.DescriptorKey key, org.eclipse.aether.resolution.ArtifactDescriptorException e)
-
toKey
public java.lang.Object toKey(org.eclipse.aether.resolution.VersionRangeRequest request)
-
getConstraint
public org.eclipse.aether.resolution.VersionRangeResult getConstraint(java.lang.Object key, org.eclipse.aether.resolution.VersionRangeRequest request)
-
putConstraint
public void putConstraint(java.lang.Object key, org.eclipse.aether.resolution.VersionRangeResult result)
-
toKey
public java.lang.Object toKey(org.eclipse.aether.artifact.Artifact artifact, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.collection.DependencySelector selector, org.eclipse.aether.collection.DependencyManager manager, org.eclipse.aether.collection.DependencyTraverser traverser, org.eclipse.aether.collection.VersionFilter filter)
-
getChildren
public java.util.List<org.eclipse.aether.graph.DependencyNode> getChildren(java.lang.Object key)
-
putChildren
public void putChildren(java.lang.Object key, java.util.List<org.eclipse.aether.graph.DependencyNode> children)
-
-