users@jaxb.java.net

Re: Plugin for EJB 3.0 annotations

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 11 Aug 2005 14:09:11 -0700

When your plugin "uses" a customization, you have to mark this
customization as used. See the following "markAsAcknowledged" code from
the code-injector plugin:

> for( ClassOutline co : model.getClasses() ) {
> CPluginCustomization c = co.target.getCustomizations().find(Const.NS,"code");
> if(c==null)
> continue; // no customization --- nothing to inject here
>
> c.markAsAcknowledged();

After all the plugins finished processing, XJC checks for unacknowledged
customizations and report the error you saw.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com