public class RepositoryAdminTracker extends Object implements org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.obr.RepositoryAdmin,org.osgi.service.obr.RepositoryAdmin>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_REPOSITORIES |
static String |
PROP_RESOURCES |
| Constructor and Description |
|---|
RepositoryAdminTracker(org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.service.obr.RepositoryAdmin |
addingService( |
void |
addRepository(URL repository) |
PropertyChangeSupport |
getPropertyChangeSupport()
Add or remove listener on repository updates.
|
Collection<org.osgi.service.obr.Repository> |
getRepositories() |
List<URL> |
getRepositoriesURL() |
Collection<org.osgi.service.obr.Resource> |
getResources() |
void |
modifiedService( |
void |
refresh()
Reload the list of resource by downloading and parsing all repositories XML again.
|
void |
removedService( |
boolean |
removeRepository(URL repository) |
public static final String PROP_REPOSITORIES
public static final String PROP_RESOURCES
public RepositoryAdminTracker(org.osgi.framework.BundleContext bundleContext)
public PropertyChangeSupport getPropertyChangeSupport()
public Collection<org.osgi.service.obr.Repository> getRepositories()
public Collection<org.osgi.service.obr.Resource> getResources()
public org.osgi.service.obr.RepositoryAdmin addingService(reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.obr.RepositoryAdmin,org.osgi.service.obr.RepositoryAdmin>public void modifiedService(reference, org.osgi.service.obr.RepositoryAdmin service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.obr.RepositoryAdmin,org.osgi.service.obr.RepositoryAdmin>public void removedService(reference, org.osgi.service.obr.RepositoryAdmin service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.osgi.service.obr.RepositoryAdmin,org.osgi.service.obr.RepositoryAdmin>public void refresh()
public void addRepository(URL repository)
public boolean removeRepository(URL repository)
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.