Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 56063 invoked from network); 14 Apr 2000 03:46:52 -0000 Received: from unknown (HELO envision.asiaconnect.com.my) (root@202.190.60.154) by locus.apache.org with SMTP; 14 Apr 2000 03:46:52 -0000 Received: from localbar.com (IDENT:niclas@localhost [127.0.0.1]) by envision.asiaconnect.com.my (8.9.3/8.8.7) with ESMTP id LAA32738 for ; Fri, 14 Apr 2000 11:53:42 +0800 Sender: niclas@envision.asiaconnect.com.my Message-ID: <38F69646.6D80ED13@localbar.com> Date: Fri, 14 Apr 2000 11:53:42 +0800 From: Niclas Hedhman Organization: Bali Automation Sdn Bhd X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Project Coordination References: <852568C0.008098F7.00@d54mta04.raleigh.ibm.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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