I'm currently trying to get an idea about how exactly OSGi works and what support it offers. I have played with OSGi services and seen how cool it is to have references to services from different versions of bundles.
Now I have also been thinking of directly instantiating classes (not using OSGi service) by calling a class's constructor in a client bundle. So I have a bundle "a" exporting packageA.ClassA, I have 2 different versions of bundle "a" deployed in my OSGi container (both versions have different implementations of ClassA). I also have bundle b importing packageA and trying to instantiate ClassA (through constructor invocation). So I was wondering what instance (especially what version) of ClassA bundle b would get depending on which version of bundle a ist active. The samples I created are kind of confusing to me and not showing what I'd expect. I haven't found specific details for this in the OSGi reference. Maybe I'm trying to do something totally wrong/unsupported. So I'd be glad is somebody could clarify this or give a hint where such a secenario is explained. thanks ----- http://www.martinahrer.at/blog http://www.martinahrer.at/blog -- View this message in context: http://www.nabble.com/Direct-instantiation-of-a-class-in-an-exported-package-tp18751044p18751044.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]