public class OverlayArtifactTypeRegistry extends DefaultArtifactTypeRegistry
Constructor and Description |
---|
OverlayArtifactTypeRegistry(ArtifactTypeRegistry delegate)
Creates a new artifact type registry with initially no registered artifact types and the specified fallback
registry.
|
Modifier and Type | Method and Description |
---|---|
OverlayArtifactTypeRegistry |
add(ArtifactType type)
Adds the specified artifact type to the registry.
|
ArtifactType |
get(String typeId)
Gets the artifact type with the specified identifier.
|
toString
public OverlayArtifactTypeRegistry(ArtifactTypeRegistry delegate)
add(ArtifactType)
to populate the registry.delegate
- The artifact type registry to fall back to, may be null
.public OverlayArtifactTypeRegistry add(ArtifactType type)
DefaultArtifactTypeRegistry
add
in class DefaultArtifactTypeRegistry
type
- The artifact type to add, must not be null
.null
.public ArtifactType get(String typeId)
ArtifactTypeRegistry
get
in interface ArtifactTypeRegistry
get
in class DefaultArtifactTypeRegistry
typeId
- The identifier of the type, must not be null
.null
if no type with the requested identifier exists.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.