[jboss-user] [JBoss AOP] - Re: How to annotate in opposite way

2008-10-28 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : You can use the negation operator !. | | First, take a look at the expression bellow: | | call(* com.a..->*(..)) AND within(com.b..) | | It will match every call to a method of a class in package com.a made by a class at package com.b | | If you use

[jboss-user] [JBoss AOP] - Re: How to annotate in opposite way

2008-10-28 Thread [EMAIL PROTECTED]
You can use the negation operator !. First, take a look at the expression bellow: call(* com.a..->*(..)) AND within(com.b..) It will match every call to a method of a class in package com.a made by a class at package com.b If you use this in a declare error tag, it will forbid any calls from c

[jboss-user] [JBoss AOP] - Re: How to annotate in opposite way

2008-10-27 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : You don't annotate the methods. You either use @DeclareError/Warning with pointcut expressions in a @Aspect annotated class as shown here https://svn.jboss.org/repos/jbossas/projects/aop/trunk/aop/src/test/org/jboss/test/aop/annotateddeclare/DeclareAspect.java or you

[jboss-user] [JBoss AOP] - Re: How to annotate in opposite way

2008-10-27 Thread [EMAIL PROTECTED]
You don't annotate the methods. You either use @DeclareError/Warning with pointcut expressions in a @Aspect annotated class as shown here https://svn.jboss.org/repos/jbossas/projects/aop/trunk/aop/src/test/org/jboss/test/aop/annotateddeclare/DeclareAspect.java or you use xml. View the original