org.sonatype.aether.util.artifact
Class DefaultArtifactTypeRegistry
java.lang.Object
org.sonatype.aether.util.artifact.DefaultArtifactTypeRegistry
- All Implemented Interfaces:
- ArtifactTypeRegistry
- Direct Known Subclasses:
- OverlayArtifactTypeRegistry
public class DefaultArtifactTypeRegistry
- extends Object
- implements ArtifactTypeRegistry
A simple artifact type registry.
- Author:
- Benjamin Bentmann
DefaultArtifactTypeRegistry
public DefaultArtifactTypeRegistry()
- Creates a new artifact type registry with initally no registered artifact types. Use
add(ArtifactType)
to populate the registry.
add
public DefaultArtifactTypeRegistry add(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 ArtifactType get(String typeId)
- Specified by:
get in interface ArtifactTypeRegistry
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.