I wouldn't go so far as to say that there is a performance PROBLEM with
using JDK proxies.  However, Javassist does provide a slight performance
gain, but I'm not convinced that it's worth the headache.  I use JDK proxies
and it works just fine for all I need.  If you ever do see that performance
becomes an issue, then re-implement your interceptor using something like
Javassist (or CGLIB).

-----Original Message-----
From: Hensley, Richard [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 18, 2004 12:49 PM
To: '[email protected]'
Subject: Reflection vs. Javassist

I've built an interceptor that uses reflection based on the example logging
interceptor. At this point, I have no strong desire to learn Javassist
unless there are known performance problems using reflection vs using
Javaassist to build out the method implementations.

My real question, is there any real performance to be gained by using
Javassist over Java reflection? If there is not, I don't see a good reason
to put in all the extra engineering effort.

Richard



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to