Class CachingArtifactTypeRegistry
java.lang.Object
org.eclipse.aether.internal.impl.collect.CachingArtifactTypeRegistry
- All Implemented Interfaces:
ArtifactTypeRegistry
A short-lived artifact type registry that caches results from a presumably slower type registry.
Internal helper class for collector implementations.
-
Method Summary
Modifier and TypeMethodDescriptionGets the artifact type with the specified identifier.static ArtifactTypeRegistrynewInstance(ArtifactTypeRegistry delegate) static ArtifactTypeRegistrynewInstance(RepositorySystemSession session)
-
Method Details
-
newInstance
-
newInstance
-
get
Description copied from interface:ArtifactTypeRegistryGets the artifact type with the specified identifier.- Specified by:
getin interfaceArtifactTypeRegistry- Parameters:
typeId- The identifier of the type, must not benull.- Returns:
- The artifact type or
nullif no type with the requested identifier exists.
-