This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Use of Custom Annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Use of Custom Annotations" Watch "Use of Custom Annotations" New topic
Author

Use of Custom Annotations

Ram Chhabra
Greenhorn

Joined: Jun 23, 2007
Posts: 23
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

Hint: java.lang.Class


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ram Chhabra
Greenhorn

Joined: Jun 23, 2007
Posts: 23
Thanks for the hint.... i am clear on this now ..

Gaurav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of Custom Annotations
 
Similar Threads
Annotations
annotation problem.
Annotation Handler in Java
Implementing Annotation Question
how to inject a resource using custom annotation