cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@localbar.com>
Subject Re: Project Coordination
Date Fri, 14 Apr 2000 03:53:42 GMT
rubys@us.ibm.com wrote:

> BSF doesn't do
> that currently as we haven't figured out how to trigger the class being
> unloaded when the XSP gets recompiled.

When you load the class, first create a new Classloader.

URLClassLoader ucl = new URLClassLoader( urls );
Class cls = ucl.loadClass( classname );
Object obj = cls.newInstance();

When you are done with the class, drop the reference to the objects as well as
the class loader.

That should do it.

Niclas


Mime
View raw message