• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

annotation example  RSS feed

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • 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
Java Python Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Java Python Ruby
  • Mark post as helpful
  • send pies
  • 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 IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!