This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of Custom Annotations

 
Ram Chhabra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am recently looking over that how to make our own custom annotations using Java 5(Tiger).
I have run over that and also created a very simple and basic annotation like below:



Now, i am confused that how to make use of this annotation, like if in another class i have used this annotation like below:



Like i want that something should happen or some check should be done if this annotation is being used in the application, then how to achieve that?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
 
Ram Chhabra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the hint.... i am clear on this now ..

Gaurav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic