Search code examples
osgiosgi-bundle

how to follow OSGi bundle changes


What's the best way to track any change in the entire the bundle population?

I've got some logic which scans all bundles for some bundle capabilities.

I want this to kick in only if there's a change in the bundle population, i.e. a bundle has been added/updated/removed.


Solution

  • Use a BundleTracker. You will receive a callback on the changes.