public class CatalogBomScanner.CatalogPopulator extends org.osgi.util.tracker.BundleTracker<java.lang.Iterable<? extends CatalogItem<?,?>>>
Constructor and Description |
---|
CatalogPopulator(org.osgi.framework.ServiceReference<ManagementContext> serviceReference) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<? extends CatalogItem<?,?>> |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent bundleEvent)
Scans the bundle being added for a catalog.bom file and adds any entries in it to the catalog.
|
void |
close() |
ManagementContext |
getManagementContext() |
void |
open() |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent bundleEvent,
java.lang.Iterable<? extends CatalogItem<?,?>> items) |
public CatalogPopulator(org.osgi.framework.ServiceReference<ManagementContext> serviceReference)
public void open()
open
in class org.osgi.util.tracker.BundleTracker<java.lang.Iterable<? extends CatalogItem<?,?>>>
public void close()
close
in class org.osgi.util.tracker.BundleTracker<java.lang.Iterable<? extends CatalogItem<?,?>>>
public ManagementContext getManagementContext()
public java.lang.Iterable<? extends CatalogItem<?,?>> addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent bundleEvent)
addingBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer<java.lang.Iterable<? extends CatalogItem<?,?>>>
addingBundle
in class org.osgi.util.tracker.BundleTracker<java.lang.Iterable<? extends CatalogItem<?,?>>>
bundle
- The bundle being added to the bundle context.bundleEvent
- The event of the addition.BundleTracker
mechanism
and supplied to the removedBundle(Bundle, BundleEvent, Iterable)
method.public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent bundleEvent, java.lang.Iterable<? extends CatalogItem<?,?>> items)
removedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer<java.lang.Iterable<? extends CatalogItem<?,?>>>
removedBundle
in class org.osgi.util.tracker.BundleTracker<java.lang.Iterable<? extends CatalogItem<?,?>>>