What is the best doc for custom annotation dev

H

hiwa

I have to develop a custom annotation or two.
I'm a sheer beginner for Java annotation, in fact
has not begun it at all yet.

What could be the best practical guide for
the annot development? I'd like to have free
one accessible from the net but if a book is
far better I will of course buy it.
 
O

Oliver Wong

hiwa said:
I have to develop a custom annotation or two.
I'm a sheer beginner for Java annotation, in fact
has not begun it at all yet.

What could be the best practical guide for
the annot development? I'd like to have free
one accessible from the net but if a book is
far better I will of course buy it.

I don't know of any good resource, free or otherwise, that covers
everything you need to take full advantage of annotations. The information I
learned is scattered everywhere, and/or learned by trial and error, and from
observing the source code of other projects.

I recommend you read these to get you started, and from there, tell us
where you're stuck, or if you have no idea how to start, what it is exactly
you hope to achieve using annotations.

http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
http://www.onjava.com/pub/a/onjava/2004/04/21/declarative.html
http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html

- Oliver
 
H

hiwa

Oliver said:
I don't know of any good resource, free or otherwise, that covers
everything you need to take full advantage of annotations. The information I
learned is scattered everywhere, and/or learned by trial and error, and from
observing the source code of other projects.

I recommend you read these to get you started, and from there, tell us
where you're stuck, or if you have no idea how to start, what it is exactly
you hope to achieve using annotations.

http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
http://www.onjava.com/pub/a/onjava/2004/04/21/declarative.html
http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html

- Oliver
This article by Jason Hunter, comprising four installments, is good.
http://www.oracle.com/technology/pub/articles/hunter_meta.html
Installment two and three has a nice hands-on tutorials for writing
and using custom annotation, both for runtime and compile time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top