cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [C2 Sitemap] Classloading comment
Date Thu, 22 Jun 2000 12:05:33 GMT
Niclas Hedhman wrote:
> 
> <map:generator
>     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,
> 
> <map:generator
>     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.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message