Herve Bitteur wrote:
> 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.