users@jaxb.java.net

Re: A question on XjcListener and JAXB 2.0 file generator

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 20 Mar 2006 08:16:15 -0800

Kirill Grouchnikov wrote:
> Kohsuke,
>
> With XjcListener running on FPML schemas i get "parsing model" message and after 1-2
> seconds i start getting generatedFile events for about 10 seconds. So,
> i'd say that it's quite useful as for large schemas the number of
> generated files causes the second stage (the generation itself) to be
> more lengthy than the schema parsing.

Really. Sounds like I should benchmark the code generation. If the file
generation is taking that long, something seems to be very wrong. I
mean, it's just putting together bytes. No intelligence involved there.

> In any case it's not the linear progress, but it's better than a progress dialog with no progress bar.

Right.

> If it can be done before the final release, it would be very helpful (not only for IDE plugins).
> Perhaps a new method in XjcListener - void generatedFile(String filename, int fileNumber,
> int totalFileCount), or a subclass of XjcListener and then check if it's a subclass - to not
> call the old generatedFile function. Or even change the signature of generatedFile since it's
> still not official release.

I'm sorry for not getting to this e-mail in a timely fashion, but I'm
afraid it's too late for the FCS. Last Friday we cut the official tag,
and I can't make a change unless it's something critical.

So most likely this is for 2.0.1.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com