JBoss.org Community Documentation
Annotation introductions allow you to embed an annotation within a the class file of the class. You can introduce an annotation to a class, method, field, or constructor.
<annotation-introduction expr="constructor(POJO->new())"> @org.jboss.complex (ch='a', string="hello world", flt=5.5, dbl=6.6, shrt=5, lng=6, \ integer=7, bool=true, annotation=@single("hello"), array={"hello", "world"}, \ clazz=java.lang.String) </annotation-introduction>
The
expr
attribute takes method(), constructor(), class(), or field(). Within those you must define
a valid expression for that construct.
The following rules must be followed for the annotation declaration: