Package io.manebot.artifact
Interface LocalArtifactRepository
-
- All Superinterfaces:
ArtifactRepository
public interface LocalArtifactRepository extends ArtifactRepository
-
-
Method Summary
Modifier and Type Method Description LocalArtifactgetArtifact(ArtifactIdentifier identifier)Gets a local artifact by its identifier.java.io.FilegetDirectory()Gets the local directory for this repository.ArtifactManifestgetManifest(java.lang.String packageId, java.lang.String artifactId)Queries an artifact manifest on this repository.default booleanisLocal()Finds if this repository is a local repository.-
Methods inherited from interface io.manebot.artifact.ArtifactRepository
getArtifact, getManifest
-
-
-
-
Method Detail
-
getDirectory
java.io.File getDirectory()
Gets the local directory for this repository.- Returns:
- Repository directory.
-
isLocal
default boolean isLocal()
Finds if this repository is a local repository.- Specified by:
isLocalin interfaceArtifactRepository- Returns:
- true
-
getManifest
ArtifactManifest getManifest(java.lang.String packageId, java.lang.String artifactId) throws ArtifactRepositoryException, ArtifactNotFoundException
Queries an artifact manifest on this repository.- Specified by:
getManifestin interfaceArtifactRepository- Parameters:
packageId- Package ID to query.artifactId- Artifact ID to query.- Returns:
- Artifact manifest.
- Throws:
ArtifactRepositoryException- if an issue occurs while accessing the repositoryArtifactNotFoundException- if the manifest cannot be found.
-
getArtifact
LocalArtifact getArtifact(ArtifactIdentifier identifier) throws ArtifactRepositoryException, ArtifactNotFoundException
Gets a local artifact by its identifier.- Specified by:
getArtifactin interfaceArtifactRepository- Parameters:
identifier- Artifact identifier.- Returns:
- Artifact definition instance.
- Throws:
ArtifactRepositoryException- if an issue occurs while accessing the repositoryArtifactNotFoundException- if the manifest cannot be found.
-
-