users@jaxb.java.net

Re: unmarshaling to extender MyClass

From: Sekhar Vajjhala <sekhar.vajjhala_at_sun.com>
Date: Tue, 08 Jul 2003 02:22:21 -0400

Ami Tabak wrote:

> JAXB problems
>
> In the pre-official releases of JAXB it is was possible to customize the
> process of unmarshalling JAXB classes from a XML input file in the following way:
>
> When XML elements are encountered, the JAXB framework creates instances of user-defined classes instead of the JAXB-generated classes (ofcourse these user-defined classes have to be defined as
> extenders (inheritors) of the the corresponding JAXB-generated classes).
>
> The mechanism was supported by using javax.xml.bind.Dispatcher class.
>
> The problem:
>
> In the first official release this class does not exists.
> I can't find any documented way to achive the same functionality.
>
> please advice.

For information regarding the use of the implClass customization for extending
the schema derived implementation class, see

    http://java.sun.com/xml/jaxb/extendingJaxbGeneratedClasses.html

See also bullet item #2 of the following email thread for additional info regarding the
workaround:
       http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0306&L=jaxb-interest&O=A&P=13781


> regards
>
> ami-t

Sekhar Vajjhala
Sun Microsystems