Move to anotations?

View: New views
4 Messages — Rating Filter:   Alert me  

Move to anotations?

by John Leonard-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the future, will xdoclet use annotations rather than javadoc tags?

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Parent Message unknown Re: Move to anotations?

by Konstantin Priblouda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


This is a good questions, asked on a wrong
list. As this list is used for XDoclet-1,  which is not
really active anymore. ( Nevertheess, all active developers hopefully
lurk here )

What is your idea of annotations usage?

regards,

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


--- On Sun, 7/12/09, John Leonard <jleonard.20081@...> wrote:

> From: John Leonard <jleonard.20081@...>
> Subject: [Xdoclet-user] Move to anotations?
> To: xdoclet-user@...
> Date: Sunday, July 12, 2009, 3:10 PM
> In the future, will xdoclet use
> annotations rather than javadoc tags?
>
> ------------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>


     

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Re: Move to anotations?

by John Leonard-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Konstantin Priblouda wrote:

> This is a good questions, asked on a wrong
> list. As this list is used for XDoclet-1,  which is not
> really active anymore. ( Nevertheess, all active developers hopefully
> lurk here )
>
> What is your idea of annotations usage?
>
> regards,
>
> ----[ Konstantin Pribluda http://www.pribluda.de ]----------------
> JTec quality components: http://www.pribluda.de/projects/
>
>
> --- On Sun, 7/12/09, John Leonard <jleonard.20081@...> wrote:
>
>  
>> From: John Leonard <jleonard.20081@...>
>> Subject: [Xdoclet-user] Move to anotations?
>> To: xdoclet-user@...
>> Date: Sunday, July 12, 2009, 3:10 PM
>> In the future, will xdoclet use
>> annotations rather than javadoc tags?
>>
>> ------------------------------------------------------------------------------
>> 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@...
>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>>
>>    
>
>
>      
>
> ------------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>  

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.


------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Parent Message unknown Re: Move to anotations?

by Konstantin Priblouda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--- On Mon, 7/13/09, John Leonard <jleonard.20081@...> 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@...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user