[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [RDDL] RDDLClassLoader

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 06 Mar 2001 11:15:24 -0700

jar url iterate directory
I guess the use cases would be:

a) A entire JAR file is the resource

The MIME type application/java-archive is unregistered but in apparently common use for JAR files.  I'd guess the right thing to return would be to take a normal URL to the .JAR file and return a
ClassLoader.

b) A class in a JAR file is the resource

I haven't seen a MIME type for a Java class, though application/java-class would probably be appropriate.  The right approach would be to take a jar: URL and return a Class.

c) A directory is the root directory for a class loader

This should return a ClassLoader, probably need a non-MIME designator to indicate this.

d) A class in a distinct file

This could be fun as you may have to iterate to determine where the base directory starts, but should return a Class.

I think you need to have distinct nature for a Java class and a Java archive or base directory.  I would think that a Java class would be the more common usage.

As part of the XSLT 1.1, SVG, HTML script coordination thread that has ranged over the XSL list and the SVG and HTML comments list over the last few days, there was discussed the need to formally
register content types already in use for portable behavior such as "text/ecmascript", "application/java-archive", etc.  It would be good if the taxonomy of behaviors in RDDL could be coordinated with
an RFC to formally define those content types.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.