On Jan 19, 2004, at 8:23 AM, Alan D. Cabrera wrote:
I do a fair bit of class loading and object instantiation and am wondering if there is some kind of standard that I should be following in Geronimo.�Any pointers?
For explicit class loading, you should never use Class.forName(name). This method permanently caches the class, so it is not possible to ever change the implementation. Instead if you want to use the class loader of your component. you should use Thread.currentThread().getContextClassLoader().loadClass(name). If you want to use the class loader of another component, I can figure out how to do that.
-dain
