users@jaxb.java.net

Re: Plugin: inject-code

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 26 Mar 2007 10:15:04 -0700

Scott Allan wrote:
> In lib/jaxb-xjc.jar, there is a file called, META-INF/services/
> com.sun.tools.xjc.Plugin. You need to add an entry so it looks like
> this:
>
> com.sun.tools.xjc.addon.locator.SourceLocationAddOn
> com.sun.tools.xjc.addon.sync.SynchronizedMethodAddOn
> com.sun.tools.xjc.addon.at_generated.PluginImpl
> com.sun.tools.xjc.addon.code_injector.PluginImpl <=== add this line
>
> It should really be added to the base code, but it's tons of fun to
> take the time to try and figure it out yourself why all the plugins
> work except this one.

I think I'll move the entire code injector plugin to jaxb2-commons as a
plugin of its own.

A part of the point of its existence is to serve as an example, so I
think that's better.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com