public final class OverlayArtifactTypeRegistry extends SimpleArtifactTypeRegistry
| Modifier and Type | Field and Description |
|---|---|
private ArtifactTypeRegistry |
delegate |
| 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(java.lang.String typeId)
Gets the artifact type with the specified identifier.
|
toStringprivate final ArtifactTypeRegistry delegate
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)
add in class SimpleArtifactTypeRegistrytype - The artifact type to add, must not be null.null.public ArtifactType get(java.lang.String typeId)
ArtifactTypeRegistryget in interface ArtifactTypeRegistryget in class SimpleArtifactTypeRegistrytypeId - The identifier of the type, must not be null.null if no type with the requested identifier exists.