File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Implementing Annotation Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Implementing Annotation Question" Watch "Implementing Annotation Question" New topic

Implementing Annotation Question

Tom Hill
Ranch Hand

Joined: Aug 24, 2003
Posts: 115
I have a question about the purpose of one of the features of Annotations.
If I have an annotation and create a class which implements this annotation what do I get from my class?

If I create an annotation such as:

What does it mean, or what is the purpose of:

I can't find any examples of why you might want to do this or even why its valid. I'm thinking this class could be created and cast as a MyAnnotation, perhaps to replace an existing annotation or add another annotation to an Element.

Any insight would be great! Cheers guys

I agree. Here's the link:
subject: Implementing Annotation Question
jQuery in Action, 3rd edition