RE: Undesired ServiceReference injection

2013-06-20 Thread CLEMENT Jean-Philippe
Erratum: Injection method is public void inject(Toto toto) which is seen as inject(Object toto) [@@ OPEN @@] De : CLEMENT Jean-Philippe Envoyé : jeudi 20 juin 2013 11:58 À : u...@karaf.apache.org<mailto:u...@karaf.apache.org> Objet : Undesired ServiceReference injection Dear all, I

Undesired ServiceReference injection

2013-06-20 Thread CLEMENT Jean-Philippe
Dear all, I have a bean with a generic method like this: public final class MyBean { public void inject { ... } } The problem is that all instances of MyBean are seen as MyBean. Hence inject() method is injected with ServiceReference as well as regular expected type. How may I ask