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.
|
toStringpublic 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)
DefaultArtifactTypeRegistryadd in class DefaultArtifactTypeRegistrytype - The artifact type to add, must not be null.null.public ArtifactType get(String typeId)
ArtifactTypeRegistryget in interface ArtifactTypeRegistryget in class DefaultArtifactTypeRegistrytypeId - The identifier of the type, must not be null.null if no type with the requested identifier exists.Copyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.