users@jaxb.java.net

Re: [JAXB 2.0] Making the QNames available in the ObjectFactory

From: <jastrachan_at_mac.com>
Date: Wed, 11 May 2005 07:17:13 +0100

Fantastic :)

Thanks Kohsuke-san!

On 11 May 2005, at 01:12, Kohsuke Kawaguchi wrote:
> jastrachan_at_mac.com wrote:
>> what'd be really handy would be an extension option you can enable to
>> generate something like this...
>> @XmlAccessorType(value = AccessType.FIELD)
>> @XmlType(name = "Relationship", namespace =
>> "http://schemas.xmlsoap.org/ws/2003/03/addressing")
>> public class Relationship {
>> public static final QName QNAME = new
>> QName("http://schemas.xmlsoap.org/ws/2003/03/addressing",
>> "Relationship");
>> ..
>> }
>
> Ah, that's very easy, if you are happy for it to be an JAXB RI
> specific option. That sounds like an excellent use case for my recent
> plug-in architecture work...
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>

James
-------
http://radio.weblogs.com/0112098/