|
Helping ordinary people create extraordinary websites! |
Develop Aspect-Oriented Java Applications with Eclipse and AJDTBy Matt Chapman, Dr. Helen Hawkins2005-05-16
Generating documentation You can use the javadoc tool to generate API documentation for Java projects, based on specially formatted comments in the source code. The AspectJ distribution, as of version 1.2, includes a tool called ajdoc. This is an extension to javadoc that adds details of the crosscutting nature of your aspects to the documentation generated by javadoc. The JDT tools in Eclipse include a wizard for invoking and configuring the javadoc tool, and with AJDT installed, a similar wizard is available for ajdoc.To invoke the Many of the classes and methods in the Spacewar code are not public, so to make the generated documentation more useful, select the Private option in the visibility section of the dialog. The Destination field towards the bottom of the dialog specifies the output location, which defaults to a doc directory in the project. Now click the Next button to go to the following page, which allows any additional options to be specified. Select the Open generated index file in browser option, so you can view the generated documentation as soon as it has been generated. After clicking Finish, you will be asked if you want to update the Figure 16. Generated documentation Tutorial Pages: » Updated tools make AOP easier for beginners and veterans alike » Installing AJDT » First steps » The Outline view and editor markers » The Spacewar example » Build configurations » Aspect Visualization perspective » Debugging » Generating documentation » Further options » Conclusion » Resources First published by IBM DeveloperWorks |
|