Kostas, I think you can get to this via the get signature method see the following: http://www.eclipse.org/aspectj/doc/released/runtime-api/index.html <http://www.eclipse.org/aspectj/doc/released/runtime-api/index.html> The way I understand it you can do the following: MethodSignature sig = (MethodSignature)thisJoinPoint.getSignature(); Which has a method called getMethod() which returns java.lang.reflect.Method Ron DiFrango
________________________________ From: [EMAIL PROTECTED] on behalf of Konstantinos Kougios Sent: Wed 3/14/2007 6:02 PM To: [email protected] Subject: [aspectj-users] getting reflection.Method from a thisJointPoint Hi, I want to read annotation information using reflection. I apply an around advice in some of my methods, and I need to get the Method or the Annotation. Neither thisJointPoint nor thisJoinPoint.getSignature(); contain a method to return the reflection.Method instance. But when I debug, I see that the implementation of the Signature has that information. Unfortunately the impl of the signature class is private and can't cast it. I can hack and get the variable, but is there a normal way of getting the Method instance? Thanks, Kostas _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
<<winmail.dat>>
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
