|
Hi there. You can get information about
the calling method using thisEnclosingJoinPointStaticPart. The docs don’t
say much about it although it has been elaborated on in past on this mailing
list. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Java guru Hi I have a situation where I need to get the information about the
calling method. By calling method I mean, the method from which a call to another
method is made, which satisfies a pointcut def. I am providing an example below pointcut interceptGetStament(): call(public String getTest(*)); String
around() : interceptGetStament(){ public class Test { public class Test1 { Now when I run Test1, i need to printout the method which calls
getTest(), in this case its "main".But what I am getting is
"getTest" as it is the joinPoint. How do I go about it? |
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
