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

Reply via email to