You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Paul Hammant <Pa...@yahoo.com> on 2001/10/16 16:50:06 UTC

DynamicProxy replacement.

Folks,

org.apache.excalibur.tools.DynamicProxy uses reflection to generate 
dynamic proxies.  This is easy, but the exception handler that 
reflection provides re-wraps exceptions in InvocationTargetException. 
 This at the very least does not aid debugging.

There is a LGPL sourceforge project called BCEL ( 
http://bcel.sourceforge.net/ ), that we could use to generate proxies 
instead of the reflection based mechanism. Slower load time, I guess, 
but quicker to invoke.  

Xalan use it : 
http://cvs.apache.org/viewcvs.cgi/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/util/MethodGenerator.java 
(and others)

Anybody have any thoughts on this?

Regards,

- Paul H


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org