Package org.eclipse.aether.util.artifact
Class SimpleArtifactTypeRegistry
java.lang.Object
org.eclipse.aether.util.artifact.SimpleArtifactTypeRegistry
- All Implemented Interfaces:
ArtifactTypeRegistry
- Direct Known Subclasses:
DefaultArtifactTypeRegistry
,OverlayArtifactTypeRegistry
A simple map-based artifact type registry.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new artifact type registry with initally 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()
-
Field Details
-
types
-
-
Constructor Details
-
SimpleArtifactTypeRegistry
SimpleArtifactTypeRegistry()Creates a new artifact type registry with initally 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
-