I have looked at how to answer to my second question (The easiest one ;-))

The class advised for a Caller pointcut is the calling class.
I didn't find a way to get a handle on this class within the implementation of
the Interceptor.So ,by adding the following code within the invokeCaller
method from the ClassAdvisor class ,I am solving my problem.

// New field added within the CallerInvocation class.
invocation.callingClass = this.clazz; 

Then ,to get information on the calling class ,we just need to
call the following static method in the Interceptor implementation 

Method callingMethod 
=MethodHashing.findMethodByHash(methodInvocation.callingClass,methodInvocation.callingMethodHash);

let me know what u think.

Thx-Claude


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822459#3822459

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822459


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to