• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

annotation example

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

We all use annotations, but how can we create our own annotations. Does anybody know any tutorial or something which describes the process to write our own annotations?

I tired to look into the source code of @Deprecated annotations and I found the below code:-



But I want to know the implementation behind such codes, or how can we write our own annotations.

Thanks in advance.

Poornima
 
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please SearchFirst, this question has already been asked on this forum:
Create custom annotation
 
Poornima Sharma
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are lot of questions that are asked twice or more in this forum. If someone is not satisfied or the answer does not solve his ultimate purpose then i suppose she/he can ask the question again. I don't think that it is an issue.

That question was asked my me about 1.5 years ago but I haven't been able to find good content on annotation yet. Since then lot of people have learnt lots of things and they might have learnt lot of new ways to solve a particular task. Hence I feel that it is perfectly fine to ask the question again.
 
Kemal Sokolovic
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

We all use annotations, but how can we create our own annotations. Does anybody know any tutorial or something which describes the process to write our own annotations?



That was part of your original question, right? You got both reference to a tutorial and books on the subject, and also a description of the process of writting your own annotations.
Unless you didn't write everything you are looking for, I think everything answering your original question is there.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Poornima Sharma wrote:Does anybody know any tutorial or something which describes the process to write our own annotations?


Oracle's Java Tutorials: Annotations
 
reply
    Bookmark Topic Watch Topic
  • New Topic