|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryAdmin
Provides centralized access to the distributed repository. A repository contains a set of resources. A resource contains a number of fixed attributes (name, version, etc) and sets of:
Method Summary | |
---|---|
Repository |
addRepository(java.lang.String repository)
Add a new repository to the federation. |
Repository |
addRepository(java.net.URL repository)
Add a new repository to the federation. |
Resource[] |
discoverResources(Requirement[] requirements)
Discover any resources that match the given requirements. |
Resource[] |
discoverResources(java.lang.String filterExpr)
Discover any resources that match the given filter. |
DataModelHelper |
getHelper()
Return a helper to perform various operations on the data model |
Repository |
getLocalRepository()
Return the repository containing locally installed resources |
Repository |
getSystemRepository()
Return the repository containing the system bundle |
Repository[] |
listRepositories()
List all the repositories. |
boolean |
removeRepository(java.lang.String repository)
Remove a repository from the federation The url must point to a repository XML file. |
Resolver |
resolver()
Create a resolver. |
Resolver |
resolver(Repository[] repositories)
Create a resolver on the given repositories. |
Method Detail |
---|
Resource[] discoverResources(java.lang.String filterExpr) throws org.osgi.framework.InvalidSyntaxException
filterExpr
- A standard OSGi filter
org.osgi.framework.InvalidSyntaxException
Resource[] discoverResources(Requirement[] requirements)
requirements
-
Resolver resolver()
Resolver resolver(Repository[] repositories)
repositories
- the list of repositories to use for the resolution
Repository addRepository(java.lang.String repository) throws java.lang.Exception
repository
-
java.lang.Exception
Repository addRepository(java.net.URL repository) throws java.lang.Exception
repository
-
java.lang.Exception
boolean removeRepository(java.lang.String repository)
repository
-
Repository[] listRepositories()
Repository getSystemRepository()
Repository getLocalRepository()
DataModelHelper getHelper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |