Re: Dependency injection using Pax Exam

2010-09-14 Thread Toni Menzel
Hi Bengt, the org.ops4j.pax.exam.Inject is Annotation facility is only a shortcut for the regular, very plain BundleContext injection which works like this : @Test public void testMe ( BundleContext ctx ) { } This is how it all started: Parameter Injection. The capability to inject the Context i

Dependency injection using Pax Exam

2010-09-13 Thread Bengt Rodehav
I've just started using Pax Exam thanks to advice from the guys at Apache Aries. I have a question related to dependency injection. Is it possible to inject a service dependency in the test class itself? I've noticed that in Aries they do not do that. Instead they use a ServiceTracker and wait for