-
Aug 21st, 2012, 10:09 AM
#1
AspectJ Pointcut definition
Hi everyone,
If I have something like that:
package A;
import B;
public classA implements InterfaceB{
//implementation of all methods (methods of interface A,B,C..)
}
package B;
import C;
public InterfaceB extends InterfaceC<Object,Object>, InterfaceD<Object,Object>{
public void MyMethod();
}
package C;
import D;
public InterfaceC<Object,Object> extends InterfaceE<Object,Object>, InterfaceF<Object>{
public Object MyMethod();
}
package D;
import E;
public InterfaceD<Object,Object> extends InterfaceE<Object,Object>{
public Object MyMethod();
}
package E;
import G;
public InterfaceE<Object,Object> extends InterfaceG<Object,Object>{
public Object MyMethod(Object o);
}
package G;
import H;
public InterfaceG<Object,Object> extends InterfaceH<Object,Object>{
public void MyMethod(Object O);
}
package H;
public InterfaceH<Object,Object>{
}
I want to intercept all methods of the class ClassA,
I used these pointcuts, but i'm not sure:
<code>
@Pointcut("within(A..*)")
</code>
<code>
@Pointcut("within(B..*)")
</code>
<code>
@Pointcut("execution(* B.*.*(..))")
</code>
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules