public final class OverlayArtifactTypeRegistry extends Object
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) |
String |
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)
type
- The artifact type to add, must not be null
.null
.public ArtifactType get(String typeId)
get
in interface ArtifactTypeRegistry
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.