users@jaxb.java.net

Re: Finding JAXB Annotated classes in JAXBContext

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Tue, 06 Dec 2005 10:09:24 -0800

Michael Mendonca wrote:
> Is it possible to use a JAXB User defined annotated class with existing schema
> derived classes? The ObjectFactory class is created only when compiling the
> schemas with the binding compiler. Is there a way to do this without using the
> binding compiler?

Yes. Use the version of JAXBContext.newInstance that takes Class[], and
pass in all "ObjectFactory.class"s in various packages plus whatever
classes you added.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com