|Sorting a list of bundles, based on the dependencies between them [message #1010979]
||Mon, 18 February 2013 10:46
| Cristian Mising name
Registered: July 2009
My plugin declares an extension point, used by various plugins. I would like to sort these contributing plugins, based on the dependencies between them. I.e. plugins on which others depend: at the beginning of the list; plugins that don't have dependencies: at the end.
PluginA depends on PluginB that depends on PluginC
PluginD has no dependencies
I would like to have them in the order: C, B, A, D.
I guess that this kind of sorting of the plugins is done by osgi as well, when it starts them, in order to ensure that when a plugin is started, for sure the plugins on which it depends are already started.
Have you got some pointers on how to achieve this?
Thank you in advance.