Announcement Announcement Module
No announcement yet.
AspectJ Pointcut definition Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:



    @Pointcut("execution(* B.*.*(..))")


  • #2
    If you post then

    1. Don't post the same question multiple times
    2. Use [ code][/code ] tags so that we can easily read the code/xml/stacktraces.\


    • #3
      Sorry, I'm just new in this forum
      ok, I'll respect this next time