Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30278
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2014-11-04 21:46 -0800 |
| References | (2 earlier) <7fdc7502-8074-44d9-ac2b-d201ab924eb8@googlegroups.com> <m33giv$d9m$1@dont-email.me> <8326746d-75ca-4234-bc09-9dd910dd9008@googlegroups.com> <cbl7fmF5ojeU1@mid.individual.net> <fbac21bc-eecb-4308-aaef-64062fca42a2@googlegroups.com> |
| Message-ID | <c46d8f91-8b93-4065-905d-526df2f0a048@googlegroups.com> (permalink) |
| Subject | Re: annotation metadata proposal |
| From | boxzou@gmail.com |
> Thanks a lot for the lead. Found this:
>
> http://deors.wordpress.com/2011/10/08/annotation-processors/
>
> So IDE and Maven both have support. Need to experiment how to generate a resource file now :)
Here is the result of my experiment:
2 libraries:
a) apt (pahakia-apt): at compile/build time, generate annotated classes info and store in META-INF/annotated-classes
in both Eclipse and maven build
b) annotation-registry (pahakia-annotation-registry): at runtime, process META-INF/annotated-classes.
Extra config in pom.xml (to enable annotation processing in IDE):
https://github.com/pahakia/lib-test/blob/master/pom.xml
search for maven-eclipse-plugin
Note: pahakia-apt must be declared as project dependency in pom.xml
Test:
https://github.com/pahakia/lib-test
project: apt-test
Note:
1. The libraries are not published in maven central yet.
2. The annotated-classes file contains only classes that have annotation at the class level.
Thanks a lot for very one's help!
Bo
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
annotation metadata proposal boxzou@gmail.com - 2014-10-30 21:06 -0700
Re: annotation metadata proposal Joerg Meier <joergmmeier@arcor.de> - 2014-10-31 07:46 +0100
Re: annotation metadata proposal Arne Vajhøj <arne@vajhoej.dk> - 2014-10-31 20:53 -0400
Re: annotation metadata proposal boxzou@gmail.com - 2014-10-31 20:26 -0700
Re: annotation metadata proposal Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-11-01 00:33 -0400
Re: annotation metadata proposal boxzou@gmail.com - 2014-11-01 07:50 -0700
Re: annotation metadata proposal Martin Gregorie <martin@address-in-sig.invalid> - 2014-11-01 20:42 +0000
Re: annotation metadata proposal boxzou@gmail.com - 2014-11-01 15:56 -0700
Re: annotation metadata proposal Robert Klemme <shortcutter@googlemail.com> - 2014-11-02 00:08 +0100
Re: annotation metadata proposal boxzou@gmail.com - 2014-11-01 19:38 -0700
Re: annotation metadata proposal boxzou@gmail.com - 2014-11-04 21:46 -0800
Re: annotation metadata proposal boxzou@gmail.com - 2014-11-04 21:50 -0800
Re: annotation metadata proposal Martin Gregorie <martin@address-in-sig.invalid> - 2014-11-02 00:31 +0000
csiph-web