public interface ResourceRepository
./cnf/dependencies.json
.
Associated with the repository is a cache (which might be shared with other
subsystems).
This repository can be used to get plugin dependencies.
Modifier and Type | Interface and Description |
---|---|
static interface |
ResourceRepository.Listener |
static class |
ResourceRepository.ResourceRepositoryEvent |
static class |
ResourceRepository.TYPE |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String repoId,
SearchableRepository.ResourceDescriptor rd) |
void |
addListener(ResourceRepository.Listener rrl) |
boolean |
delete(String repoId,
byte[] rd) |
boolean |
deleteCache(byte[] id) |
List<? extends SearchableRepository.ResourceDescriptor> |
filter(String repository,
String filter)
Get the list of Resource Descriptors.
|
SortedSet<SearchableRepository.ResourceDescriptor> |
find(String repository,
String bsn,
VersionRange range) |
File |
getCacheDir(String name) |
File |
getResource(byte[] id,
RepositoryPlugin.DownloadListener... listeners) |
SearchableRepository.ResourceDescriptor |
getResourceDescriptor(byte[] sha) |
static final String FILENAME
List<? extends SearchableRepository.ResourceDescriptor> filter(String repository, String filter) throws Exception
filter
- An OSGi filter matched against the SearchableRepository.ResourceDescriptor
Exception
File getResource(byte[] id, RepositoryPlugin.DownloadListener... listeners) throws Exception
Exception
SearchableRepository.ResourceDescriptor getResourceDescriptor(byte[] sha) throws Exception
Exception
boolean add(String repoId, SearchableRepository.ResourceDescriptor rd) throws Exception
Exception
void addListener(ResourceRepository.Listener rrl)
SortedSet<SearchableRepository.ResourceDescriptor> find(String repository, String bsn, VersionRange range) throws Exception
Exception
Copyright © 2015 aQute SARL. All rights reserved.