This content has been marked as final.
Show 3 replies
-
1. Re: Access the caller in a call(...) pointcut
kabirkhan Jun 16, 2005 10:10 AM (in response to zoid)If it is a ConstructorCalledByMethodInvocation or a MethodCalledByMethodInvocation you can use getCallingObject().
-
2. Re: Access the caller in a call(...) pointcut
zoid Jun 16, 2005 10:25 AM (in response to zoid)What about MethodCalledByConstructor?
Basically, when my pointcut matches, I want to invoke a particular method on the caller object. It so happens that one of the calls is made from a constructor. Is there anyway to get to the calling object (the one being constructed) in that case? -
3. Re: Access the caller in a call(...) pointcut
oberon777 Jun 20, 2005 1:35 AM (in response to zoid)I think target object is what you want. You need to treat all invocation subclasses separately, though.