• Post Reply Bookmark Topic Watch Topic
  • New Topic

ANNOTATION PARSER  RSS feed

 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Can some suggest good article for annotation parser or reader..how to, dos and donts.
Thanks and regards,
kundan
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean java5 APT? Either way, googling for "java annotation processing tool"
should help. There was a presentation given in java one 2005 i think...thats also neat. Also check out
JAM and QDox.

Its been a while since I did anything with XDoclet2. But am just curious why are you processing the annotation @ compile time.
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically what i wanted to know is suppose i got following details from traversing Annotation[]
@javax.persistence.Entity(access=PROPERTY, name=EJBTEST)

I want to get access is property and name is EJBTEST .Is there any method available in annotation package to get this.
Thanks,
kundan
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok i found the answer
Its like
Entity e = (Entity)a[i];
System.out.println(e.name());
System.out.println(e.access());
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!