Can you show me the details of the following commands: >$ factory com.ce.flowbeans.io.DeviceService >$ instance com.ce.flowbeans.io.DeviceService-0
Thanks 2013/5/3 Michiel Vermandel <[email protected]> > Hi, > > > I did not do that yet. > I just wanted to see the Handler getting invoked. > I have added a System.out in the constructor of the handler and in the > start method but I do not see any of these comments in the console. > > When exactly is/should the Handler be instantiated? > > Thanks > > ----------------- > http://www.codessentials.com - Your essential software, for free! > Follow us at http://twitter.com/#!/Codessentials > > > ________________________________ > From: Clement Escoffier <[email protected]> > To: [email protected]; Michiel Vermandel <[email protected]> > Sent: Thursday, May 2, 2013 8:06 PM > Subject: Re: [iPOJO] using External Handler > > > Hi, > > Did you implement the configure method and parsed the given metadata ? You > must register a field interceptor for each field you need to inject. > > Regards, > > Clement > > On 2 mai 2013, at 17:10, Michiel Vermandel <[email protected]> wrote: > > > 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 >

