Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Attribute-Oriented Programming  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any support for code generation using metadata(attributes) from java source in 1.5? Like the feature is available in xdoclet http://xdoclet.sourceforge.net/xdoclet/index.html for J2EE code generation.
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think,

Annotation has one advantage over XDoclet. Annotations are available through reflection interfaces.

Reference Website
http://javaboutique.internet.com/tutorials/annotation/
http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by somkiat puisungnoen:
Annotation has one advantage over XDoclet. Annotations are available through reflection interfaces.



XDoclet got feature like annotation before Tiger? I've never tried XDoclet yet...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!