Peeking Inside the Box: Attribute-Oriented Programming with Java 1.5, Part 2
Subject:   Did I miss the boat ( XDoclet functionality )?
Date:   2004-08-01 11:43:33
From:   steven1

Nice articles, I especially like the analogie to mechanical devices in the beginning of the first article.

Your introduction to JDK 1.5 (Tiger) annotation turned out to be a lot different than my preconceptions (possible false). I thought Tiger annotation functionality was going to be something similar to XDoclet: i.e. meta data useful for code generation. Your introduction shows Tiger annotation as a more run time capability similar to aspect-oriented technology.

Did I miss the boat here? Is the functionality of XDoclet not being assimilated into Java like I thought?

Inquiring minds want to know!


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Don Schwarz photo Did I miss the boat ( XDoclet functionality )?
    2004-08-01 14:39:38  Don Schwarz | [View]

    The annotation spec (JSR-175) describes a method of embedding annotations in Java source code and ways of accessing that data from bytecode or at run-time.

    As of Java 1.5.0b2, a new tool has been included with Java called apt , which is a tool to auto-generate files (Java source code as well as other build artifacts) using annotations. This is very much in line with XDoclet. Although apt wasn't available at the time I wrote this article, my goal was very similar to apt's. However, I extended this concept to include not only compile-time build processes, but modification of bytecode while it is running.