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 15533 invoked from network); 22 Jun 2000 13:32:29 -0000 Received: from systemy.systemy.it (194.20.140.20) by locus.apache.org with SMTP; 22 Jun 2000 13:32:29 -0000 Received: from apache.org (pv41-pri.systemy.it [194.21.255.41]) by systemy.systemy.it (8.8.8/8.8.8) with ESMTP id NAA28915 for ; Thu, 22 Jun 2000 13:32:24 GMT Message-ID: <3952010D.E1EDF482@apache.org> Date: Thu, 22 Jun 2000 14:05:33 +0200 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en,it MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [C2 Sitemap] Classloading comment References: <3951D398.AFE8C0D2@localbar.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Niclas Hedhman wrote: > > type="dir" > src="file:///home/mystuff/java/MyDirGenerator.class" > /> > > from the proposed sitemap. > > This is a really troublesome feature. None of the existing classloaders > can handle it, and if you make your own you will have a smaller headache > to figure out which part of the path that is the package name. ??? the package name is contained inside the class. > I therefor suggest another generic format, > > type="dir" > src="class:///mypackage.DirGenerator" > url="file:///home/niclas/java/" > /> > > If 'url' attribute is not present, the system class loader is used, > otherwise, for each URL an URLClassloader (we are Java2, right?) is > instantiated and class is loaded. > > Niclas > > P.S. Also note the 3 dashes for the class: protocol. In the URL spec, > it is said that after the 2 slashes follows host name. I can go with 0, > 1 or 3 dashes, but not 2. You're right for this one. -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- Missed us in Orlando? Make it up with ApacheCON Europe in London! ------------------------- http://ApacheCon.Com ---------------------