Look at the documentation, the difference between a call pointcut and an execution poincut and play with thisJoinPoint.getTarget() and thisJoinPoint.getThis()
Cordialement / Best regards Jean-Louis Pasturel _____ De : [email protected] [mailto:[email protected]] De la part de Rajat Gupta Envoyé : mercredi 9 juin 2010 08:46 À : [email protected] Objet : [aspectj-users] How to get caller method name, little urgent. Hi all ! I want to get the caller method name which calls a particular api. So ideally i should get "testMethod" when ever i call "logData" method. There is another question related to this after earlier part is complete I want to use "aspectJLogging" method when ever "logData" method is called. Please suggest this as well. I had attached the files. I would be very thankful for your help. Many Thanks Rajat ********************************* This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. ********************************
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
