Section 21.3. Annotation Tools


21.3. Annotation Tools

A number of annotation facilities are available for the Java environment. We already mentioned Javadoc, which is built into Java and is aimed at autogeneration of HTML documentation for Java code. Javadoc is somewhat extensible in itself. You can write your own custom Javadoc processor to take code with Javadoc comments and generate your own documentation formats. You can also define your own custom Javadoc tags and handle them in your custom Javadoc handlers.

Javadoc is, however, aimed principally at documentation-oriented code annotations and is used almost exclusively for that purpose. Since this book is about enterprise application development, we discuss XDoclet and J2SE annotationsannotation tools that are particularly relevant to enterprise contexts. XDoclet includes a wide array of predefined annotations for enterprise development, and J2SE annotations are being used to define standard annotations in the next versions of key enterprise Java APIs.



Java Enterprise in a Nutshell
Java Enterprise in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596101422
EAN: 2147483647
Year: 2004
Pages: 269

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net