Annotations in Tiger, Part 2, Custom annotations

Write your own annotations in Java 5

From the developerWorks archives

Brett McLaughlin

Date archived: May 14, 2019 | First published: September 02, 2004

Part 1 of this series introduced annotations, the new metadata facility in J2SE 5.0, and focused on Tiger's basic built-in annotations. A more powerful related feature is support for writing your own annotations. In this article Brett McLauglin shows how to create custom annotations and then how to annotate your annotations to document and customize your code further.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.

Zone=Java development
ArticleTitle=Annotations in Tiger, Part 2: Custom annotations