|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.bundlerepository.impl.RepositoryAdminImpl
public class RepositoryAdminImpl
| Field Summary | |
|---|---|
static java.lang.String |
EXTERN_REPOSITORY_TAG
|
static java.lang.String |
REPOSITORY_URL_PROP
|
| Constructor Summary | |
|---|---|
RepositoryAdminImpl(org.osgi.framework.BundleContext context,
org.apache.felix.utils.log.Logger logger)
|
|
| Method Summary | |
|---|---|
Repository |
addRepository(java.lang.String uri)
Add a new repository to the federation. |
Repository |
addRepository(java.net.URL url)
Add a new repository to the federation. |
RepositoryImpl |
addRepository(java.net.URL url,
int hopCount)
|
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. |
void |
dispose()
|
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 uri)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REPOSITORY_URL_PROP
public static final java.lang.String EXTERN_REPOSITORY_TAG
| Constructor Detail |
|---|
public RepositoryAdminImpl(org.osgi.framework.BundleContext context,
org.apache.felix.utils.log.Logger logger)
| Method Detail |
|---|
public DataModelHelper getHelper()
RepositoryAdmin
getHelper in interface RepositoryAdminpublic Repository getLocalRepository()
RepositoryAdmin
getLocalRepository in interface RepositoryAdminpublic Repository getSystemRepository()
RepositoryAdmin
getSystemRepository in interface RepositoryAdminpublic void dispose()
public Repository addRepository(java.lang.String uri)
throws java.lang.Exception
RepositoryAdmin
addRepository in interface RepositoryAdminjava.lang.Exception
public Repository addRepository(java.net.URL url)
throws java.lang.Exception
RepositoryAdmin
addRepository in interface RepositoryAdminjava.lang.Exception
public RepositoryImpl addRepository(java.net.URL url,
int hopCount)
throws java.lang.Exception
java.lang.Exceptionpublic boolean removeRepository(java.lang.String uri)
RepositoryAdmin
removeRepository in interface RepositoryAdminpublic Repository[] listRepositories()
RepositoryAdmin
listRepositories in interface RepositoryAdminpublic Resolver resolver()
RepositoryAdmin
resolver in interface RepositoryAdminpublic Resolver resolver(Repository[] repositories)
RepositoryAdmin
resolver in interface RepositoryAdminrepositories - the list of repositories to use for the resolution
public Resource[] discoverResources(java.lang.String filterExpr)
throws org.osgi.framework.InvalidSyntaxException
RepositoryAdmin
discoverResources in interface RepositoryAdminfilterExpr - A standard OSGi filter
org.osgi.framework.InvalidSyntaxExceptionpublic Resource[] discoverResources(Requirement[] requirements)
RepositoryAdmin
discoverResources in interface RepositoryAdmin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||