Package org.eclipse.aether.util.artifact
Class DefaultArtifactTypeRegistry
java.lang.Object
org.eclipse.aether.util.artifact.DefaultArtifactTypeRegistry
- All Implemented Interfaces:
ArtifactTypeRegistry
A simple artifact type registry.
-
Constructor Summary
ConstructorDescriptionCreates a new artifact type registry with initially no registered artifact types. -
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
-
DefaultArtifactTypeRegistry
public DefaultArtifactTypeRegistry()Creates a new artifact type registry with initially no registered artifact types. Useadd(ArtifactType)
to populate the registry.
-
-
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: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.
-
toString
-