"[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
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
"[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
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