Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Caller method

public aspect Cleanup {

  pointcut delegate() : call(* DelegateFactory.getSomeDelegate());

  after() : delegate() {
    // do some cleanup (probably need thisJoinPoint stuff)
  }
}

Is this what you are looking for?

On 5/10/07, Andrej Amster <amster1981@xxxxxxxxx> wrote:
I'm using EJB and Delegate patterns and when i'm constructing a delegate in client code within a method, then after execution of that method i would like to do some clean up calls.

Is it possible to capture method in which i call DelegateFactory.getInstance().getSomeDelegate()?


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top