|DS service injection & multiple applications & headless [message #652623]
||Fri, 04 February 2011 13:11
| Christophe Fondacci
Registered: July 2009
Got a problem with service injection (DS) in a RCP app :
* My RCP app makes extensive use of service injection
* I am building a headless application, using all non-ui part of this app
* The headless app redefines some services whose implementation were injected by the UI part so that it can run without any UI interaction
Everything works great when the 2 notions (headless and RCP) are distinct.
I would like to bundle a single product with the RCP app AND the headless app so that the user can start our application and also use his same installation headless through command line.
The problem is that I don't know how to do this. Declaring a dependency from the RCP product to the headless plugin (containing the headless app) messes the configuration because overridden services (through "service.ranking") of the headless app are used in place of the expected IDE services.
Do you think there is a way to do this ? Am I doing something wrong ?
I think I could declare the headless service declaration with a low ranking so that IDE services will always override any declaration from the headless plugin, but i'm not sure whether this is a good way to go...
Any help would be very appreciated.
Powered by FUDForum
. Page generated in 0.01923 seconds