--- On Mon, 7/13/09, John Leonard <jleonard.20...@gmx.com> wrote:

> Well, annotations and Javadoc tags both serve the same
> purpose - they 
> add descriptive information to *.java files which can be
> used by various 
> software processors in different ways.

> However annotations constitute a change in the Java
> language. Javac now 
> understands them and can make them available during
> run-time, for instance.
> 
> Since there are 2 ways of doing the same thing it seems
> that developers, 
> and Java developers as a whole, would make better use of
> their time and 
> money if they focused on one. Since Javadoc tags are an
> ‘ad hoc’ 
> solution and Annotations are a part of the language, I
> would think that 
> the future for this kind of development would revolve
> around Annotations.
> 
> John L.

As for historical truth, annotations were inspired by xdoclet-tags.

But they have one big drawback - they are bound to class. So,  as long as 
you need only one instance of class, yuo can be happy with annotations as 
metadata.  But when you need two or more of something ( for example,  I 
sometimes  map the same struts action class to 2 different packages ) -- they 
are of no use anymore, and you still need different metadata facility.  

And xdoclet is there to generate those metadata. 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/




      

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to