You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com> on 2013/06/20 11:58:25 UTC

Undesired ServiceReference injection

Dear all,

I have a bean with a generic method like this:
public final class MyBean<Toto> {
            public void inject<Toto> { ... }
}

The problem is that all instances of MyBean are seen as MyBean<Object>. Hence inject() method is injected with ServiceReference as well as regular expected type.

How may I ask ServiceReference not to be injected?

Best regards,
JP

[@@ OPEN @@]