> What is the command to unload a class @ runtime...(the
> opposite of Class.forName.)
There is none.
If you want to reload a class then you need to do the following.
- The class must be loaded via a custom class loader.
- All instances of the class, the class itself and the class loader must be available for collection. (This generally is handled via a proxy interface.)
- Reloading the class then involves nothing more than creating a new class loader and reconnecting the instances (in a proxy.)