Hi,
Yes everything is valid: Handler com.ce.flowbeans.channels:Channel (VALID) Factory com.ce.flowbeans.io.DeviceService (VALID) Instance com.ce.flowbeans.io.DeviceService-0 -> valid The issue is, I think, that the Handler is simply never called. I have put some System.out in the constructor and the start method, but I do not see these comments in the console... Any ideas? Thnaks ----------------- http://www.codessentials.com - Your essential software, for free! Follow us at http://twitter.com/#!/Codessentials ________________________________ From: Guillaume Sauthier (OW2/GMail) <[email protected]> To: [email protected]; Michiel Vermandel <[email protected]> Sent: Thursday, May 2, 2013 8:43 PM Subject: Re: [iPOJO] using External Handler If you take a look at the details of the instance (ipojo:instance <name>), what do you see ? Is the factory of your component valid ? --G 2013/5/2 Michiel Vermandel <[email protected]> Hi, > >In my previous post I mentioned an issue with my custom annotations. >Now I'm trying to write a iPOJO Handler to inject these dependencies. > >I have created a class implementing PrimitiveHandler: > >@Handler(name = "Channel", namespace = "com.ce.flowbeans.channels") >public class EventChannelHandler extends PrimitiveHandler { > >I have implemented the required methods, but have only put some system.out for >the moment. > >I also have my annotation @Channel in the package "com.ce.flowbeans.channels". > >When I startup the framework I see the handler: > >>handlers >Handler org.apache.felix.ipojo:properties (VALID) >Handler org.apache.felix.ipojo:requires (VALID) >Handler org.apache.felix.ipojo:architecture (VALID) >Handler org.apache.felix.ipojo:callback (VALID) >Handler org.apache.felix.ipojo:controller (VALID) >Handler org.apache.felix.ipojo:provides (VALID) >Handler com.ce.flowbeans.channels:Channel (VALID) <== > >But when a field in a component is annotated with the @Channel annotation, it >gets not injected. >Neither do I see any call to the initializeComponentFactory(...) or >configure(...) or start() methods of the handler. > >Do I need to specifically attach the handler to the component instance in some >way? > >Thanks > > > >----------------- >http://www.codessentials.com - Your essential software, for free! >Follow us at http://twitter.com/#!/Codessentials

