Package 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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(String repoId, SearchableRepository.ResourceDescriptor rd) voidbooleanbooleandeleteCache(byte[] id) List<? extends SearchableRepository.ResourceDescriptor>Get the list of Resource Descriptors.find(String repository, String bsn, VersionRange range) getCacheDir(String name) getResource(byte[] id, RepositoryPlugin.DownloadListener... listeners) getResourceDescriptor(byte[] sha)
-
Field Details
-
FILENAME
- See Also:
-
-
Method Details
-
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 theSearchableRepository.ResourceDescriptor- Returns:
- an immutable list of resource descriptors
- Throws:
Exception
-
getResource
- Throws:
Exception
-
getResourceDescriptor
- Throws:
Exception
-
delete
- Throws:
Exception
-
add
- Throws:
Exception
-
addListener
-
deleteCache
- Throws:
Exception
-
find
SortedSet<SearchableRepository.ResourceDescriptor> find(String repository, String bsn, VersionRange range) throws Exception - Throws:
Exception
-
getCacheDir
-