aQute.bnd.service.repository
Interface ResourceRepository
- All Known Implementing Classes:
- ResourceRepositoryImpl
public interface ResourceRepository
A Resource Repository represents a repository local to the workspace. A
Workspace will always create one Workspace Repository. References to the
contents are stored in a text file in ./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.
FILENAME
static final String FILENAME
- See Also:
- Constant Field Values
filter
List<? extends SearchableRepository.ResourceDescriptor> filter(String repository,
String filter)
throws Exception
- Get the list of Resource Descriptors. This contains all the descriptors
that are n the file, regardless of cache.
- Parameters:
filter - An OSGi filter matched against the SearchableRepository.ResourceDescriptor
- Returns:
- an immutable list of resource descriptors
- Throws:
Exception
getResource
File getResource(byte[] id,
RepositoryPlugin.DownloadListener... listeners)
throws Exception
- Throws:
Exception
getResourceDescriptor
SearchableRepository.ResourceDescriptor getResourceDescriptor(byte[] sha)
throws Exception
- Throws:
Exception
delete
boolean delete(String repoId,
byte[] rd)
throws Exception
- Throws:
Exception
add
boolean add(String repoId,
SearchableRepository.ResourceDescriptor rd)
throws Exception
- Throws:
Exception
addListener
void addListener(ResourceRepository.Listener rrl)
deleteCache
boolean deleteCache(byte[] id)
throws Exception
- Throws:
Exception
find
SortedSet<SearchableRepository.ResourceDescriptor> find(String repository,
String bsn,
VersionRange range)
throws Exception
- Throws:
Exception
getCacheDir
File getCacheDir(String name)
Copyright © 2014 aQute SARL. All rights reserved.