users@jaxb.java.net

Re: Enum Plugin ?

From: Hanson Char <hanson.char_at_gmail.com>
Date: Sat, 6 Jan 2007 10:06:11 -0800

Nice. Thanks.

Hanson

On 1/2/07, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_sun.com> wrote:
>
> Hanson Char wrote:
> > However, I couldn't find an easy way to generate the static block,
> besides
> > resorting to use the JDefinedClass.direct() method. One undesirable
> side
> > effect is that it seems such "direct" static block is always generated
> at
> > the end of the source file, rather then observing the execution order of
> the
> > plugin.
> >
> > Is there a better way ?
>
> You can create a static initialize block by calling
> JDefinedClass.init(). I know, the naming is poor.
>