Suppose I create a very simple eclipse plugin to create new java projects.
I am obviously creating a new wizard for the org.eclipse.ui.newWizards extension point. However, I really want other plugins to be able to implement the service that runs this new wizard.
So, in theory, we have three plugins:
- My "main plugin" (with MyNewWizard)
- My "interface plugin" (with IMyService)
- My implementation plugin (with MyServiceImpl)
Using standard OSGI stuff, I would just use the services from ServiceTracker.
Unfortunately, Im in Eclipse OSGI land where I cannot create my wizard class by passing my ServiceTracker, but Eclipse does my plugin.
WITHOUT using a singleton in my Activator, does Eclipse provide some mechanism for inputting IoC / Dependency Injection, or at least a way to request services from these user interface classes?
thanks
source
share