|
| Re: OSGi service bundle start options - noobie [message #498778 is a reply to message #498687] |
Wed, 18 November 2009 10:34   |
Paul Webster Messages: 6813 Registered: July 2009 Location: Ottawa |
Senior Member |
|
|
If I read Spring DM right (that the extender can only see bundles after they've been activated) then you're going to have to do the leg work yourself.
3 options that come to mind:
1) require everybody that provides a bundle-context.xml to use org.eclipse.ui.startup ... their IStartup implementation will be called after the workbench/workbench windows have been created (now the bundles are activated)
2) create your own extension point that bundle-context.xml providers use ... then your engine that reads the extension point can start up the bundles you want whenever necessary.
3) use eclipse DS (the first call to get a service activates the providing bundle) either by itself or in conjunction with your Spring DM ... the caveat being that someone still has to ask for the DS service in order to activate all the bundles.
But I'm not 100% sure how Spring DM work on its side, I'm just guessing.
PW
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
|
Powered by
FUDForum. Page generated in 0.01533 seconds