Class DefaultArtifactTypeRegistry

  • All Implemented Interfaces:
    org.eclipse.aether.artifact.ArtifactTypeRegistry

    public final class DefaultArtifactTypeRegistry
    extends java.lang.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​(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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • add

        public DefaultArtifactTypeRegistry add​(org.eclipse.aether.artifact.ArtifactType type)
        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 org.eclipse.aether.artifact.ArtifactType get​(java.lang.String typeId)
        Specified by:
        get in interface org.eclipse.aether.artifact.ArtifactTypeRegistry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object