public class LocalRepository extends AbstractRepository
LocalRepository is a Repository located in a filesystem directory.Repositoryarguments, name, uri| Modifier | Constructor and Description |
|---|---|
protected |
LocalRepository(java.lang.String name,
java.net.URI uri,
java.nio.file.Path path)
(Internal) Constructs a
LocalRepository from the path with inferred name. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MRL> |
getResources()
Returns a list of
MRLs in the repository. |
boolean |
isRemote()
Returns whether the repository is remote repository.
|
Metadata |
locate(MRL mrl)
Returns the metadata at a mrl.
|
Artifact |
resolve(MRL mrl,
java.util.Map<java.lang.String,java.lang.String> filter)
Returns the artifact matching a mrl, version, and property filter.
|
addResource, download, getBaseUri, getCacheDirectory, getFile, getName, listDirectory, md5hash, openStream, prepare, resolvePath, saveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataset, dataset, getResourceDirectory, model, model, model, newInstance, newInstance, prepare, registerRepositoryFactoryprotected LocalRepository(java.lang.String name,
java.net.URI uri,
java.nio.file.Path path)
LocalRepository from the path with inferred name.
name - the name of the repositoryuri - the base URI of the repositorypath - the path to the repositorypublic boolean isRemote()
public Metadata locate(MRL mrl) throws java.io.IOException
mrl - the mrl of the metadata to retrievejava.io.IOException - if it failed to load the metadatapublic Artifact resolve(MRL mrl, java.util.Map<java.lang.String,java.lang.String> filter) throws java.io.IOException
mrl - the mrl to match the artifact againstfilter - the property filterjava.io.IOException - if it failed to load the artifact