[jboss-user] [JBoss AOP] - Re: Introducing annotations only on classes which don't have
kabir.khan@jboss.com
do-not-reply at jboss.com
Thu Apr 9 09:00:31 EDT 2009
If you use
class(package.SomeClass)
it matches on the class and should only annotate the class. Similarly, field(* *->field)
should only annotate matched fields. I guess when matching for for example a method then in fact that method does not match
class(@MyOwnAnnotation)
so effectively
!class(@MyOwnAnnotation)
matches. Try
| class($instanceof{java.lang.Object}) AND !class(@MyOwnAnnotation)
|
instead.
We don't do any validation of the ElementType, so if this is a big issue for you please add a JIRA issue.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224677#4224677
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224677
More information about the jboss-user
mailing list