public class MemoryArtifactStore extends BaseArtifactStore implements Serializable
| Constructor and Description |
|---|
MemoryArtifactStore() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
get(Artifact artifact) |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getArchetypeCatalog() |
long |
getArchetypeCatalogLastModified() |
Set<String> |
getArtifactIds(String groupId) |
Set<Artifact> |
getArtifacts(String groupId,
String artifactId,
String version) |
Set<String> |
getGroupIds(String parentGroupId) |
long |
getLastModified(Artifact artifact) |
org.apache.maven.artifact.repository.metadata.Metadata |
getMetadata(String path) |
long |
getMetadataLastModified(String path) |
long |
getSize(Artifact artifact) |
Set<String> |
getVersions(String groupId,
String artifactId) |
void |
set(Artifact artifact,
InputStream content) |
void |
setArchetypeCatalog(InputStream content) |
setMetadatapublic Set<String> getGroupIds(String parentGroupId)
getGroupIds in interface ArtifactStorepublic Set<String> getArtifactIds(String groupId)
getArtifactIds in interface ArtifactStorepublic Set<String> getVersions(String groupId, String artifactId)
getVersions in interface ArtifactStorepublic Set<Artifact> getArtifacts(String groupId, String artifactId, String version)
getArtifacts in interface ArtifactStorepublic long getLastModified(Artifact artifact) throws IOException, ArtifactNotFoundException
getLastModified in interface ArtifactStoreIOExceptionArtifactNotFoundExceptionpublic long getSize(Artifact artifact) throws IOException, ArtifactNotFoundException
getSize in interface ArtifactStoreIOExceptionArtifactNotFoundExceptionpublic InputStream get(Artifact artifact) throws IOException, ArtifactNotFoundException
get in interface ArtifactStoreIOExceptionArtifactNotFoundExceptionpublic void set(Artifact artifact, InputStream content) throws IOException
set in interface ArtifactStoreset in class BaseArtifactStoreIOExceptionpublic org.apache.maven.artifact.repository.metadata.Metadata getMetadata(String path) throws IOException, MetadataNotFoundException
getMetadata in interface ArtifactStoreIOExceptionMetadataNotFoundExceptionpublic long getMetadataLastModified(String path) throws IOException, MetadataNotFoundException
getMetadataLastModified in interface ArtifactStoreIOExceptionMetadataNotFoundExceptionpublic void setArchetypeCatalog(InputStream content) throws IOException
setArchetypeCatalog in interface ArtifactStoresetArchetypeCatalog in class BaseArtifactStoreIOExceptionpublic org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalog in interface ArtifactStoregetArchetypeCatalog in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionpublic long getArchetypeCatalogLastModified()
throws ArchetypeCatalogNotFoundException
getArchetypeCatalogLastModified in interface ArtifactStoregetArchetypeCatalogLastModified in class BaseArtifactStoreArchetypeCatalogNotFoundExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.