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 ArtifactTypeRegistry
newInstance
(ArtifactTypeRegistry delegate) static ArtifactTypeRegistry
newInstance
(RepositorySystemSession session)
-
Method Details
-
newInstance
-
newInstance
-
get
Description copied from interface:ArtifactTypeRegistry
Gets the artifact type with the specified identifier.- Specified by:
get
in interfaceArtifactTypeRegistry
- Parameters:
typeId
- The identifier of the type, must not benull
.- Returns:
- The artifact type or
null
if no type with the requested identifier exists.
-