Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] How to get caller method name, little urgent.

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 : aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Rajat Gupta
Envoyé : mercredi 9 juin 2010 08:46
À : aspectj-users@xxxxxxxxxxx
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.
********************************

Back to the top