users@jaxb.java.net

impClass Insantiation

From: John Tracy <junk_at_valenciasystems.com>
Date: Fri, 29 Aug 2003 15:13:29 -0400

We are using an external xjb customization file to specify custom
classes that extend the JAXB generated implementation classes.
We are doing this for quite a few element types. We expect that
the JAXB generated classes will create instances of our custom
classes for the specified elements when a document is unmarshalled
and when the ObjectFactory createXxxElement() methods are called.

What we are seeing is that JAXB is performing as expected for some
of our custom classes but not for others. For some it is only creating
instances of our custom classes in the ObjectFactory methods. The
generated Unmarshaller classes (for the elements types that contain
our custom element types) are creating instances of the generated
XxxTypeImpl classes and not of our CustomXxxElement classes.

We assume our xjb file is correct since a) the customizations are identical
for the
classes that work and those that don't, and b) the ObjectFactory methods
return
instances of our custom classes in all cases.

Is this a known problem? How do we resolve it?

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net