cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject [C2][Avalon] Avoid Class.forName and getClassLoader()
Date Fri, 11 May 2001 18:32:57 GMT
Berin,

I noticed the use of getClassLoader().loadClass() in Avalon's DefaultComponentManager and
DefaultComponentSelector.java. We should be using Thread's getContextClassLoader first *BEFORE*
using either Class.forName() or getClassLoader.loadClass(). This will reduce problems later....

See http://www.javageeks.com/Papers/ClassForName/DynLoad.pdf for more information. You can
also
look into javax.xml.parsers.SAXParserFactory's code.

Thanks,
dims


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message