users@jaxb.java.net

Re: Sub-classing JAXB generated classes

From: Dean Grossmith <dean.grossmith_at_ABERDEENPROPERTYINVESTORS.COM>
Date: Thu, 06 Feb 2003 10:18:26 -0700

>I'm sorry, I just mixed up the RI specific part and the spec part.

>The spec says the ObjectFactory class will have non-static createXXX
>methods. This is a portable part.

>The next release of RI (hopefully) generates the code in such a way that
>the user can override those methods to specify sub-classes (I'm not 100%
>sure since we didn't try it by ourselves, but we had this in mind.) This
>is the RI-specific part.

That's good news! I assume that RI means "runtime implementation"?

>For example, the whole concept of sub-classing a generated
>implementation class won't work if the implementation classes are
>generated on-the-fly at the runtime.

Ofcourse, this could work if these mappings could be specified as JAXB custom bindings. What do you think?

Regards,

Dean.