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