[jboss-user] [Javassist user questions] - Re: how to annotate a field
parkinm
do-not-reply at jboss.com
Wed May 7 05:06:19 EDT 2008
Hi,
Read the JavaDoc on AnnotationsAttributes at http://www.csg.is.titech.ac.jp/~chiba/javassist/html/javassist/bytecode/AnnotationsAttribute.html
The first snippet gets the annotation from the method. The second snippet adds an annotation to a class - it's the same process to add an annotation to a method (call .setAttribute() on the method not the class).
Michael.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149023#4149023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149023
More information about the jboss-user
mailing list