users@jaxb.java.net

Re: custom AnnotationReader

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 13 Nov 2006 11:24:23 -0800

Herve Bitteur wrote:
> Hi,
>
> Speaking of a "custom AnnotationReader to read annotations from an
> external file", this might be the right approach for handling Java
> sources the user cannot annotate. We had a discussion a few days ago
> about marshalling JRE classes such as classes Point or Dimension in
> java.awt package. For example, how can we specify that we'll use
> attributes rather than elements? In the case of "non-annotable" classes,
> some external file could be the answer.

Yes. Indeed that was where this original idea came from.

I'm still waiting for someone to volunteer for writing a custom
AnnotationReader that reads from a file. I think all the hooks are there
in the JAXB RI. We just need an implementation of it.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com