The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Dynamic Extension



This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


How do you do that?

Posted by jon taylor on January 31, 2002 at 4:04 PM

how do you create a new instance of ClassLoader?
Should I create a DiskClassLoader extends ClassLoader class?

> Hi,
> A ClassLoader always caches the classes it previously loaded and are found using the method findLoadedClass. There is no way to unregister a class in a classloader. So if u want to reload a class from the disk the only way is to create a new Instance of the Class Loader itself and load the changed class file using the new object.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us