users@jaxb.java.net

Re: restricting access to constructors of generated classes

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 02 Jan 2007 12:32:35 -0800

HeruMartinus.Salim_at_infineon.com wrote:
> Hi,
>
> How can I create a plugin to change the behavior of the generation of
> ObjectFactory?
> I haven't found how, because this generation is not done in Plugin
> level, but in BeanGenerator level. (as I know)

You can get access to JDefinedClass of ObjectFactory, so from there you
have certain degree of control. You are right that you can't completely
take over the ObjectFactory generation process, although if that's
something you want to do, I think we can work something out.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com