com.buglabs.osgi.obr
Class RepositoryAdminImpl
java.lang.Object
com.buglabs.osgi.obr.RepositoryAdminImpl
- All Implemented Interfaces:
- ResourceListProvider, RepositoryAdmin
public class RepositoryAdminImpl
- extends java.lang.Object
- implements RepositoryAdmin, ResourceListProvider
OBR RepositoryAdmin implementation.
- Author:
- kgilmer
|
Constructor Summary |
RepositoryAdminImpl(org.osgi.framework.BundleContext context,
org.osgi.service.log.LogService log)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryAdminImpl
public RepositoryAdminImpl(org.osgi.framework.BundleContext context,
org.osgi.service.log.LogService log)
addRepository
public Repository addRepository(java.net.URL repository)
throws java.lang.Exception
- Specified by:
addRepository in interface RepositoryAdmin
- Throws:
java.lang.Exception
discoverResources
public Resource[] discoverResources(java.lang.String filterExpr)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
discoverResources in interface RepositoryAdmin
- Throws:
org.osgi.framework.InvalidSyntaxException
resourceMatches
public static boolean resourceMatches(Resource r,
org.osgi.framework.Filter f)
- Parameters:
r - f -
- Returns:
getResource
public Resource getResource(java.lang.String resourceId)
- Specified by:
getResource in interface RepositoryAdmin
listRepositories
public Repository[] listRepositories()
- Specified by:
listRepositories in interface RepositoryAdmin
removeRepository
public boolean removeRepository(java.net.URL repository)
- Specified by:
removeRepository in interface RepositoryAdmin
resolver
public Resolver resolver()
- Specified by:
resolver in interface RepositoryAdmin
getAllResources
public java.util.List getAllResources()
- Specified by:
getAllResources in interface ResourceListProvider
- Returns:
- List of type Resource