|
||||||||||
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 RepositoryAdmin
public Repository getLocalRepository()
RepositoryAdmin
getLocalRepository
in interface RepositoryAdmin
public Repository getSystemRepository()
RepositoryAdmin
getSystemRepository
in interface RepositoryAdmin
public void dispose()
public Repository addRepository(java.lang.String uri) throws java.lang.Exception
RepositoryAdmin
addRepository
in interface RepositoryAdmin
java.lang.Exception
public Repository addRepository(java.net.URL url) throws java.lang.Exception
RepositoryAdmin
addRepository
in interface RepositoryAdmin
java.lang.Exception
public RepositoryImpl addRepository(java.net.URL url, int hopCount) throws java.lang.Exception
java.lang.Exception
public boolean removeRepository(java.lang.String uri)
RepositoryAdmin
removeRepository
in interface RepositoryAdmin
public Repository[] listRepositories()
RepositoryAdmin
listRepositories
in interface RepositoryAdmin
public Resolver resolver()
RepositoryAdmin
resolver
in interface RepositoryAdmin
public Resolver resolver(Repository[] repositories)
RepositoryAdmin
resolver
in interface RepositoryAdmin
repositories
- 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 RepositoryAdmin
filterExpr
- A standard OSGi filter
org.osgi.framework.InvalidSyntaxException
public 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 |