• 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:

Help me to understand annotations

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all.
I have been reading the annotation page at java.sun.com , but I understand nothing...
look at the following example please :

the page says :
In annotations with a single element, the element should be named value to avoid having to specify the name when the annotation is used.
would you explain please ???
the page continuing :
After an annotation type is defined, a developer can use it to annotate declarations in code:

I didn't understand the effect of the previous lines, would you explain please ??
does it mean that Converter class is implementing Copyright interface ?
understadning annotation is a vital subject to me as EJB 3.0 will be built using this approach, so would mind helping me to understand this technology ?
thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic