W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

[WebIDL] Java package mapping (was: Re: [Selectors-API] IDL namespace)

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 28 Nov 2008 21:42:08 +1100
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: public-webapps@w3.org
Message-ID: <20081128104207.GD16515@arc.mcc.id.au>

Lachlan Hunt:
> It seems from the Java bindings section of Web IDL that the way to  
> define modules and how they're mapped to Java packages isn't yet very  
> stable.

I’ve added a way to specify the Java package naming method now:


So in selectors-api you would write:

  module dom {
    interface NodeSelector { … };

I’d be open to having [JavaPackagePrefix=org.w3c] if the repetition of
“dom” is sufficiently unsightly.

Alternatively: is it worth hard coding a Java package prefix into the
spec, so that [JavaPackage] is not normally needed?  (This could map a
module called ‘dom’ to org.w3c.dom, and other modules at the top
level to org.w3c.dom.foo (for module events, module svg, etc.), unless
overridden.)  And would this make Web IDL too specific for use by W3C
specifications, and if it does, is that really a problem?



Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 28 November 2008 10:42:54 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:12 UTC