I have 4 components ( OSGI bundles if you will ) A, B, C and D. Each component has several modules depending upon how we want the interfaces of that component to be bound to implementations. Heres the dependency map:
C ==> A ( this means Component C uses A ) B ==> A D ==> B (therefore indirectly also uses A through B) D ==> C (therefore indirectly also uses A through C) D ==> A The modules exported from B ( or any component ) are self contained i.e., they wire up all dependencies of B and B's dependencies which means A. Heres the trouble, if I use a module for B and C that use different versions of A the whole thing blows up. Likewise if D uses a module of A thats different from B and C its the same. Is there a more elegant way to solviing this? In real life its like saying I want to build a house with windows and doors. The doors are made of mahogany wood but that doesnt mean my windows should also be made up of mahogany wood. From the house builders perspective I dont want to know what the doors and windows are made up of its just a door and window I liked so I picked it up. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
