users@jaxb.java.net

injecting JAXB annotations at runtime

From: Arul Dhesiaseelan <arul_at_fluxcorp.com>
Date: Tue, 09 Dec 2008 10:56:38 -0700

Hi,

I am trying to annotate a class with @XmlRootElement at runtime. AFAIK,
I can't use the JAXB introductions because it needs an external static
configuration file.

I can think of using javaassist to manipulate the class file at runtime.
But, I wanted to check here if there is a better alternative to do this
with any other tools or does JAXB RI provides any hooks to do this.

-Arul