public interface SearchableRepository
Modifier and Type | Interface and Description |
---|---|
static class |
SearchableRepository.ResourceDescriptor
Describes a resource that is a member of the underlying remote
repository.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addResource(SearchableRepository.ResourceDescriptor resource)
Add a resource descriptors to the underlying repository.
|
Set<SearchableRepository.ResourceDescriptor> |
findResources(org.osgi.resource.Requirement requirement,
boolean includeDependencies)
Find a set of resources that match the given requirement.This is intended
to be used to provide extra resources when a resolve fails.
|
Set<SearchableRepository.ResourceDescriptor> |
getResources(URI url,
boolean includeDependencies)
Convert a URL to a set of resource descriptors.
|
Set<SearchableRepository.ResourceDescriptor> |
query(String query)
Search a repository and return a set of resource descriptors that match
the query.
|
Set<SearchableRepository.ResourceDescriptor> getResources(URI url, boolean includeDependencies) throws Exception
url
- the dropped urlincludeDependencies
- Include any dependent revisionsException
Set<SearchableRepository.ResourceDescriptor> query(String query) throws Exception
query
- The query syntaxException
boolean addResource(SearchableRepository.ResourceDescriptor resource) throws Exception
resource
- the descriptor to addException
Set<SearchableRepository.ResourceDescriptor> findResources(org.osgi.resource.Requirement requirement, boolean includeDependencies) throws Exception
requirement
- The requirement to matchincludeDependencies
- Include any dependent revisionsException
Copyright © 2015 aQute SARL. All rights reserved.