Package org.eclipse.aether.util.artifact
Class OverlayArtifactTypeRegistry
- java.lang.Object
-
- org.eclipse.aether.util.artifact.OverlayArtifactTypeRegistry
-
- All Implemented Interfaces:
org.eclipse.aether.artifact.ArtifactTypeRegistry
public final class OverlayArtifactTypeRegistry extends java.lang.Object
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
Constructors Constructor Description OverlayArtifactTypeRegistry(org.eclipse.aether.artifact.ArtifactTypeRegistry delegate)
Creates a new artifact type registry with initially no registered artifact types and the specified fallback registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OverlayArtifactTypeRegistry
add(org.eclipse.aether.artifact.ArtifactType type)
Adds the specified artifact type to the registry.org.eclipse.aether.artifact.ArtifactType
get(java.lang.String typeId)
java.lang.String
toString()
-
-
-
Constructor Detail
-
OverlayArtifactTypeRegistry
public OverlayArtifactTypeRegistry(org.eclipse.aether.artifact.ArtifactTypeRegistry delegate)
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 Detail
-
add
public OverlayArtifactTypeRegistry add(org.eclipse.aether.artifact.ArtifactType type)
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
public org.eclipse.aether.artifact.ArtifactType get(java.lang.String typeId)
- Specified by:
get
in interfaceorg.eclipse.aether.artifact.ArtifactTypeRegistry
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-