Package io.manebot.artifact
Interface LocalArtifactRepository
-
- All Superinterfaces:
ArtifactRepository
public interface LocalArtifactRepository extends ArtifactRepository
-
-
Method Summary
Modifier and Type Method Description LocalArtifact
getArtifact(ArtifactIdentifier identifier)
Gets a local artifact by its identifier.java.io.File
getDirectory()
Gets the local directory for this repository.ArtifactManifest
getManifest(java.lang.String packageId, java.lang.String artifactId)
Queries an artifact manifest on this repository.default boolean
isLocal()
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:
isLocal
in 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:
getManifest
in 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:
getArtifact
in 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.
-
-