I'm trying out my own plugin. What causes the "customization is attached to
a place where it is not allowed" error other than the obvious answer that my
custom tag is in the wrong place. I have tried placing it everywhere without
any luck. It works when I use the code-injector sample however.
<xs:complexType name="personType">
<xs:annotation><xs:appinfo>
<ejb3:annotate>
test
</ejb3:annotate>
</xs:appinfo></xs:annotation>
<xs:sequence>
...
It seems to have nothing to do with my plugin code since the run method
does nothing except display the class names, which I am seeing in the output.
public boolean run(Outline model, Options opt, ErrorHandler errorHandler) {
for( ClassOutline co : model.getClasses() ) {
System.out.println(co.implClass);
}
return true;
}
In a message dated 8/11/2005 12:28:29 P.M. Central Daylight Time,
Kohsuke.Kawaguchi_at_Sun.COM writes:
See the recently added "at_generated" plug-in for example.
Also check out the JAXB RI architecture document [1], and its codeModel
section.
[1]
https://jaxb-architecture-document.dev.java.net/nonav/doc/?jaxb/package-summar
y.html
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com