Use the <class implClass="..." /> customization.
Personally, I don't think this is good enough, so any feedback would be
appreciated.
Ami Tabak <ami-t_at_BARAK-ONLINE.NET> wrote:
> 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.
regards,
--
Kohsuke Kawaguchi 408-276-7063 (x17063)
Sun Microsystems kohsuke.kawaguchi_at_sun.com