Sorting a list of bundles, based on the dependencies between them [message #1010979] |
Mon, 18 February 2013 15:46 |
Cristian Spiescu Messages: 100 Registered: July 2009 |
Senior Member |
|
|
Hello,
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.
E.g.:
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.
Best regards,
Cristian.
|
|
|
Re: Sorting a list of bundles, based on the dependencies between them [message #1011865 is a reply to message #1010979] |
Wed, 20 February 2013 11:49 |
|
Hello,
I'm not aware about any way to get this kind of "dependency list" from
Equinox runtime. But you may prefer graphical visualization of
dependency using e..g
http://www.eclipse.org/pde/incubator/dependency-visualization/. Though
it is in "incubation" phase for many years, I am its long time happy user.
--
Have a nice day!
Libor Jelinek
http://devblog.virtage.com/libor-jelinek/
On 18.2.2013 16:46, Cristian Mising name wrote:
> Hello,
>
> 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.
>
> E.g.:
> 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.
>
> Best regards,
> Cristian.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03163 seconds