Search code examples
javaosgibundleapache-felix

Felix How to get list of all dependent bundles from the updated bundle


Possible Duplicate:
Find the dependent bundles in Eclipse at runtime

How to get list of all dependent bundles from the updated bundle? For example, situation when some application loaded same bundles. In one time I will update one bundle. How can I get all bundles which depend on the updated bundle? This is necessary in order to restart all bundles which depend on the updated bundle, so they can see a new object of the updated bundle. Sorry my bad English. Best regards, Arthur.


Solution

  • Use the FrameworkWiring.getDependencyClosure method.