User Documentation
One Minute Introduction
Two Minute Introduction
Your own plugin
Coffee Break Introduction
Property substitution
FAQ
|
|||||
|
|||||
User DocumentationOne Minute Introduction |
Future of XDoclet2
Does Java 5 Annotations mean 'beginning of the end' for XDoclet? //TODOIt probably would not be way off the mark to say that XDoclet inspired the introduction of the new Annotations feature in Java5. Metadata, currently specified as QDox tags, can be specified through Java5 annotations. It might lead us to conclude that this renders XDoclet obsolete. It is indeed true that newer frameworks will read and apply their respective services at runtime on code artifacts that carry a specific annotation. Popular open source projects like Hibernate 3.x, Tapestry 4.x have already adopted annotations to describe metadata thereby eliminating the need for configuration files for storing the same. But then XDoclet is a Code Generation tool. As long as there is a need for code generation, XDoclet should still make sense. We saw that a nice abstraction has been built on top of the metadata source. (I believe, its not there yet!). Generama can just as well replace QDox with an equivalent parser that reads 'annotated' Java5 source files. It appears the codehaus already has JAM (http://annogen.codehaus.org/JAM) to do that. Either way, the Tiger release has already addressed this through Java5 Annotation Processing Tool. XDoclet2 Vs APT (Java 5 Annotation Processing Tool) //TODOJava5 comes bundled with Annotation Processing Tool (APT), a command line tool, to process the source level annotations at build time. It also provides a reflective api that models the java's type system. |
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||