class CachingArtifactTypeRegistry extends java.lang.Object implements ArtifactTypeRegistry
Modifier and Type | Field and Description |
---|---|
private ArtifactTypeRegistry |
delegate |
private java.util.Map<java.lang.String,ArtifactType> |
types |
Modifier | Constructor and Description |
---|---|
private |
CachingArtifactTypeRegistry(ArtifactTypeRegistry delegate) |
Modifier and Type | Method and Description |
---|---|
ArtifactType |
get(java.lang.String typeId)
Gets the artifact type with the specified identifier.
|
static ArtifactTypeRegistry |
newInstance(ArtifactTypeRegistry delegate) |
static ArtifactTypeRegistry |
newInstance(RepositorySystemSession session) |
private final ArtifactTypeRegistry delegate
private final java.util.Map<java.lang.String,ArtifactType> types
private CachingArtifactTypeRegistry(ArtifactTypeRegistry delegate)
public static ArtifactTypeRegistry newInstance(RepositorySystemSession session)
public static ArtifactTypeRegistry newInstance(ArtifactTypeRegistry delegate)
public ArtifactType get(java.lang.String typeId)
ArtifactTypeRegistry
get
in interface ArtifactTypeRegistry
typeId
- The identifier of the type, must not be null
.null
if no type with the requested identifier exists.