users@jaxb.java.net

Re: injecting JAXB annotations at runtime

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Tue, 9 Dec 2008 19:47:22 +0100

On Tue, Dec 9, 2008 at 6:56 PM, Arul Dhesiaseelan <arul_at_fluxcorp.com> wrote:

> Hi,
>
> I am trying to annotate a class with @XmlRootElement at runtime.



Although I may not be able to help you with this caper I'd still like to
know why this has to be at runtime. There might be an altogether different
approach, or can you exclude that?



> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>