Package org.eclipse.aether.util.artifact
Class OverlayArtifactTypeRegistry
java.lang.Object
org.eclipse.aether.util.artifact.OverlayArtifactTypeRegistry
- All Implemented Interfaces:
ArtifactTypeRegistry
An artifact type registry which first consults its own mappings and in case of an unknown type falls back to another
type registry.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new artifact type registry with initially no registered artifact types and the specified fallback registry. -
Method Summary
Modifier and TypeMethodDescriptionadd(ArtifactType type) Adds the specified artifact type to the registry.Gets the artifact type with the specified identifier.toString()
-
Constructor Details
-
OverlayArtifactTypeRegistry
Creates a new artifact type registry with initially no registered artifact types and the specified fallback registry. Useadd(ArtifactType)to populate the registry.- Parameters:
delegate- the artifact type registry to fall back to, may benull
-
-
Method Details
-
add
Adds the specified artifact type to the registry.- Parameters:
type- the artifact type to add, must not benull- Returns:
- this registry for chaining, never
null
-
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.
-
toString
-