org.sonatype.aether.util.artifact
Class DefaultArtifactTypeRegistry

java.lang.Object
  extended by org.sonatype.aether.util.artifact.DefaultArtifactTypeRegistry
All Implemented Interfaces:
ArtifactTypeRegistry

public class DefaultArtifactTypeRegistry
extends java.lang.Object
implements ArtifactTypeRegistry

A simple artifact type registry.

Author:
Benjamin Bentmann

Constructor Summary
DefaultArtifactTypeRegistry()
           
 
Method Summary
 DefaultArtifactTypeRegistry add(ArtifactType stereotype)
          Adds the specified artifact type to the registry.
 ArtifactType get(java.lang.String stereotypeId)
          Gets the artifact type with the specified identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArtifactTypeRegistry

public DefaultArtifactTypeRegistry()
Method Detail

add

public DefaultArtifactTypeRegistry add(ArtifactType stereotype)
Adds the specified artifact type to the registry.

Parameters:
stereotype - The artifact type to add, must not be null.
Returns:
This registry for chaining, never null.

get

public ArtifactType get(java.lang.String stereotypeId)
Description copied from interface: ArtifactTypeRegistry
Gets the artifact type with the specified identifier.

Specified by:
get in interface ArtifactTypeRegistry
Parameters:
stereotypeId - The identifier of the type, must not be null.
Returns:
The artifact type or null if no type with the requested identifier exists.


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.