Package io.manebot.artifact
Class AggregateArtifactRepository
- java.lang.Object
-
- io.manebot.artifact.AggregateArtifactRepository
-
- All Implemented Interfaces:
ArtifactRepository
- Direct Known Subclasses:
GlobalArtifactRepository
public abstract class AggregateArtifactRepository extends java.lang.Object implements ArtifactRepository
-
-
Constructor Summary
Constructors Constructor Description AggregateArtifactRepository()
-
Method Summary
Modifier and Type Method Description ArtifactManifestgetManifest(ManifestIdentifier identifier)Queries an artifact manifest on this repository.ArtifactManifestgetManifest(java.lang.String packageId, java.lang.String artifactId)Queries an artifact manifest on this repository.protected abstract java.util.Collection<ArtifactRepository>getRepositories()booleanisLocal()Finds if this repository is a local repository.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.manebot.artifact.ArtifactRepository
getArtifact, getArtifact
-
-
-
-
Method Detail
-
getRepositories
protected abstract java.util.Collection<ArtifactRepository> getRepositories()
-
isLocal
public boolean isLocal()
Description copied from interface:ArtifactRepositoryFinds if this repository is a local repository.- Specified by:
isLocalin interfaceArtifactRepository- Returns:
- true if the repository is local, false otherwise.
-
getManifest
public ArtifactManifest getManifest(ManifestIdentifier identifier) throws ArtifactNotFoundException
Description copied from interface:ArtifactRepositoryQueries an artifact manifest on this repository.- Specified by:
getManifestin interfaceArtifactRepository- Parameters:
identifier- ManifestIdentifier to query.- Returns:
- Artifact manifest.
- Throws:
ArtifactNotFoundException- if the manifest cannot be found.
-
getManifest
public ArtifactManifest getManifest(java.lang.String packageId, java.lang.String artifactId) throws ArtifactNotFoundException
Description copied from interface:ArtifactRepositoryQueries 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:
ArtifactNotFoundException- if the manifest cannot be found.
-
-