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.


Solution for Reloading class files

Posted by Anay Tamhankar on March 01, 2001 at 11:34 PM

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