-
1. Re: How to get 'caller' object in 'call' type of joinpoint?
kabirkhan Nov 4, 2004 2:03 PM (in response to nthx)calling Class.
Caller invocations are for use in cases where the execution pointcuts cannot be used, and this functionality is not present in the "normal" execution invocations either. In my opinion interceptors should not know anything about the caller object, but I could be convinced :-)
I'll let Bill decide if the documentation is a typo or if this is something we should add. -
2. Re: How to get 'caller' object in 'call' type of joinpoint?
kabirkhan Nov 4, 2004 2:09 PM (in response to nthx)The first sentence should have been:
You cannot get the calling object but you can get the calling Class. -
3. Re: How to get 'caller' object in 'call' type of joinpoint?
bill.burke Nov 4, 2004 2:12 PM (in response to nthx)Caller invocations should be able to reference the called and calling object.
You can currently reference the called object by getTargetObject. We should add a getCallingObject method to XXXXCalledByMethod invocation classes.
Bill -
4. Re: How to get 'caller' object in 'call' type of joinpoint?
nthx Nov 5, 2004 6:30 AM (in response to nthx)I'd be satisfied with that. That's exactly what I meant.
Tomasz -
5. Re: How to get 'caller' object in 'call' type of joinpoint?
bill.burke Nov 5, 2004 9:50 AM (in response to nthx)Ok, this is implemented in CVS. It will be in next release.
Bill