users@jaxb.java.net

Re: XJC Plugin: turn of creation of ObjectFactory (or replace ObjectFactory with an own)

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Wed, 6 May 2009 23:35:17 +0200

Hi,

> Hi again, just a second question.
>
> How could I turn off the creation of the standard ObjectFactory?
> Or even better, how could I replace it with my own created ObjectFactory?
>
> At the moment, I just iterate over every class and assemble my own
> ObjectFactory. After the creation process, a PERL-script deletes the JAXB
> ObjectFactory and my ObjectFactory is put in place.
> So is there a hidden switch, to immediately take over the creation of the
> ObjectFactory?

No. See PackageOutlineImpl why.

What does your custom ObjectFactory do? Maybe it could be achieved
with other means.

Bye.
/lexi