Class SimpleArtifactTypeRegistry

java.lang.Object
org.eclipse.aether.util.artifact.SimpleArtifactTypeRegistry
All Implemented Interfaces:
ArtifactTypeRegistry
Direct Known Subclasses:
DefaultArtifactTypeRegistry, OverlayArtifactTypeRegistry

class SimpleArtifactTypeRegistry extends Object implements ArtifactTypeRegistry
A simple map-based artifact type registry.
  • Field Details

  • Constructor Details

    • SimpleArtifactTypeRegistry

      SimpleArtifactTypeRegistry()
      Creates a new artifact type registry with initally no registered artifact types. Use add(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 be null.
      Returns:
      This registry for chaining, never null.
    • get

      public ArtifactType get(String typeId)
      Description copied from interface: ArtifactTypeRegistry
      Gets the artifact type with the specified identifier.
      Specified by:
      get in interface ArtifactTypeRegistry
      Parameters:
      typeId - The identifier of the type, must not be null.
      Returns:
      The artifact type or null if no type with the requested identifier exists.
    • toString

      public String toString()
      Overrides:
      toString in class Object