[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [RDDL] RDDLClassLoader
- From: Jonathan Borden <jborden@mediaone.net>
- To: "Arnold, Curt" <Curt.Arnold@hyprotech.com>, xml-dev@lists.xml.org
- Date: Tue, 06 Mar 2001 11:59:29 -0500
What I'm doing so far is this:
The java URLClassLoader constructor accepts URL[] as a parameter.
class RDDLClassLoader extends URLClassLoader {
RDDLClassLoader(namespaceURI,purposeURI) {
super(RDDLClassLoader.buildURLarrayFromNSandPurpose(namespaceURI,purposeURI)
);
};
where the static method buildURLArray... parses the RDDL document at the
namespace URI and builds a URL[] of all the <rddl:resource xlink:href="URIs"
..> where the purpose matches the purposeURI and the nature is
http://www.rddl.org/natures/software#java
So from my reading of JarURLConnection, assuming that the xlink:href URI is
of the form:
"jar:http://...", the URLClassLoader ought do the right thing?
Otherwise the form "http://example.org/foo" would indicate a URL to be used
as a classpath. Is this assumption correct?
-Jonathan
>
>
> Are you supporting the jar: URI scheme from the JarURLConnection
> class in the JDK,
> http://www.javasoft.com/j2se/1.3/docs/api/java/net/JarURLConnectio
> n.html? Do you have a reference for a java: URI
> scheme? http://www.w3.org/addressing/schemes had java: as a
> scheme for which it was missing a reference and didn't list jar:.
>