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 ArtifactManifest
getManifest(ManifestIdentifier identifier)
Queries an artifact manifest on this repository.ArtifactManifest
getManifest(java.lang.String packageId, java.lang.String artifactId)
Queries an artifact manifest on this repository.protected abstract java.util.Collection<ArtifactRepository>
getRepositories()
boolean
isLocal()
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:ArtifactRepository
Finds if this repository is a local repository.- Specified by:
isLocal
in interfaceArtifactRepository
- Returns:
- true if the repository is local, false otherwise.
-
getManifest
public ArtifactManifest getManifest(ManifestIdentifier identifier) throws ArtifactNotFoundException
Description copied from interface:ArtifactRepository
Queries an artifact manifest on this repository.- Specified by:
getManifest
in 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:ArtifactRepository
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:
ArtifactNotFoundException
- if the manifest cannot be found.
-
-