class SimpleArtifactTypeRegistry extends java.lang.Object implements ArtifactTypeRegistry
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,ArtifactType> |
types |
| Constructor and Description |
|---|
SimpleArtifactTypeRegistry()
Creates a new artifact type registry with initally no registered artifact types.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleArtifactTypeRegistry |
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.
|
java.lang.String |
toString() |
private final java.util.Map<java.lang.String,ArtifactType> types
SimpleArtifactTypeRegistry()
add(ArtifactType)
to populate the registry.public SimpleArtifactTypeRegistry add(ArtifactType type)
type - The artifact type to add, must not be null.null.public ArtifactType get(java.lang.String typeId)
ArtifactTypeRegistryget in interface ArtifactTypeRegistrytypeId - The identifier of the type, must not be null.null if no type with the requested identifier exists.public java.lang.String toString()
toString in class java.lang.Object