cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [C2][Avalon] Avoid Class.forName and getClassLoader()
Date Mon, 14 May 2001 13:16:52 GMT
Davanum Srinivas wrote:
> 
> 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....

Beta 2 will have a better approach.  You will have the opportunity to create the
DefaultComponentManager with the ClassLoader of your choice--but if none is given,
it defaults to the getContextClassLoader method.

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


Mime
View raw message