On 28.07.2009, at 10:59, Carsten Ziegeler wrote:

Clement Escoffier wrote

Hi,

iPOJO uses ASM to handle annotations. In iPOJO, this choice made perfect
sense as the manipulation is itself built with ASM. This allows to
introspect all the annotations present in the bytecode of classes.
However, it will require that you compile your classes into bytecode and
maybe generate what you need directly in bytecode.

Sounds good :)

Can you give me some pointers in the iPojo code where the introspection
of the annotations is done?
The scr plugin already uses asm to inject the bind/unbind methods.

The annotation processing is in 
http://svn.apache.org/repos/asf/felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/
In the iPOJO case, annotation are collected and processed into iPOJO internal metadata (added to the bundle manifest). But you should easily adapt it to your needs.

Regards,

Clement



Regards
Carsten
--
Carsten Ziegeler
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to