I suppose you're using CDI and pax-cdi.
In such a case, injection in a bundle activator won't work.
2016-05-18 18:18 GMT+02:00 Frizz :
> I have a OSGi service that I'd like to inject in one of my bundles.
> When I use @Inject it's always Null - and I don't understand
I have a OSGi service that I'd like to inject in one of my bundles.
When I use @Inject it's always Null - and I don't understand why. Is it not
possible to use @Inject in a BundleActivator?
When I manually access the Service Registry (-> see start() method) it
works fine.
public class