Good question; I assume @Inject private org.apache.felix.scr.ScrService myService;
does not do what you like? If no I would have to lookup the according pax-exam code; the entire injection isn't done by the paxexam-karaf framework but rather by paxexam itself. Kind regards, Andreas On Fri, Nov 18, 2011 at 10:40, Giacomo Coletta <[email protected]>wrote: > > Hi Andreas and Andi, > > thank you for the advice. > What i was meaning in my previous email was that only > > @Inject > BundleContext bundleContext; > works, while > @Inject > ComponentContext componentContext; > does not work. I think this is correct (or not ?). > Anyway i would like to try to inject org.apache.felix.scr.ScrService. > Could you give me an example of how to correctly set the filter ? > > Thank you > > Giacomo > > *From:* Andreas Pieber [mailto:[email protected]] > *Sent:* Thursday, November 17, 2011 20:16 > *To:* [email protected] > *Subject:* Re: Pax Exam Karaf Testframework 4.0 and Declarative services > > Hi Giacomo, > > Not sure if we've mentioned it already, but pls keep in mind that you have > to use javax.injection.Injection annotation instead of the paxexam one > > Kind regards, > Andreas > > On Thu, Nov 17, 2011 at 17:09, akuhtz <[email protected]> wrote: > >> Hi, >> >> Just verified that injection of ConfigurationAdmin works, too, after I >> added >> the mavenBundle dependency to config options. >> >> Cheers >> Andi >> >> >
