users@jaxb.java.net

global customization in Java-first approach

From: Levi Purvis <javanet_at_purvis.ws>
Date: Wed, 21 Feb 2007 14:48:05 -0500

Does anyone know of a way to apply global customization patterns in
the Java-first approach? Or a plug-in point to create an extension
for this?

For example, lets say I always wanted my schema types to start with a
capital letter. Currently, I'd do this:

@XmlType(name="Foo")
class Foo {}

@XmlType(name="Bar")
 class Bar {}

Instead of adding these annotations to every class, I'd rather create
a "plug-in" that changes the default behavior. Is anything like this
possible with the Java-first approach?

I'd like to do the same thing with Collections, make them always
include an implicit @XmlElementWrapper.