There are extensions to guice (peaberry) that deal with services registration and such. It is quite simple to use.
If you do not need services exchanges, guice works great in an osgi environment. And combining Blueprint with guice also works quite well. On Apr 22, 2011, at 1:42 PM, Cristiano Gavião wrote: > Hi people, > > Today I was studying a little more about the options that we have on DI area > with OSGi environment. > > I could see that Blueprint is the actual standard DI for OSGi, and that we > could also use spring DM. > > I have been using @inject from JSR-330 (Dependency Injection for Java > specification) with our web and desktop applications (that we are intend to > migrate to OSGi). > > And I could find that there is Google Guice for OSGi...but I couldn't find > any information about its use with Karaf, yet. > > My question: is the use of JSR-330 a valid approach with OSGi and > particularly with Karaf ? > > thanks for any comment > > Cristiano
