This post originated from an RSS feed registered with Java Buzz
by Adam Kruszewski.
Original Post: JAM -- single layer for processing JSR175 and XDoclet annotations.
Feed Title: Adam Kruszewski :: WebLog();
Feed URL: http://adam.kruszewski.name/blojsom/blog/adam.kruszewski/?flavor=rss2
Feed Description: Thoughts about linux, open source, programming, ...
For a while I was playing with J2SE5.0 APT tool
(Brian Oxley have written
how to create annotation processor for APT) -- this tool mimics behaviour of javac adding additional annotation processing abilities. I was wondering how could I run it to allow multiple passes of different annotation processors (with few ant tasks launched sequentially or something like that), but in mean time I have found JAM. It is Annogen component and it abstracts JSR175 and XDoclet annotations and provide single layer for processing them in a easy way:
public static void main (String[] args ) throws IOException {
I'll stick with JAM for a while ;) Maybe it is not a complete tool like APT but
I think it gives more power and is XDoclet annotations 'backward-compatible'.
Above code with simple annotated class can be downloaded here as Eclipse compressed project (just import it into workspace; Eclipse 3.1M4 is required and you'll need to fix path for tools.jar pointing to your JDK's copy).