Monday September 18, 2006
Joseph D. Darcy's Sun WeblogJoseph D. Darcy's Sun Weblog JSR 269 in proposed final draft I'm happy to announce that JSR 269 has progressed to the proposed final draft stage of the JCP process. This draft corresponds to the version of JSR 269 implemented in build 98 of JDK 6. Please send comments to jsr-269-comments@jcp.org. Changes from the public review draft include:
Post a Comment: Comments are closed for this entry. |
Calendar
RSS Feeds
All /Annotation Processing /General /Java /JavaOne /Numerics /OpenJDK SearchLinks
NavigationReferersToday's Page Hits: 1225 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted by Andrés Testi on September 24, 2006 at 07:56 PM PDT #
Andrés, the JSR 269 annotation processing API is designed to be read-only in the sense of not supporting overwriting the files being processed. Therefore, it is not intended to be used directly for AOP purposes. However, various parties have built AOP frameworks by extending JSR 269's predecessor apt; for example Spoon.
To achieve effects similar to AOP using the standard JSR 269 API, you can use variations of the decorator pattern by having the annotation processor generate either the superclass or subclass(es) of the annotated class. For some further discussion, see this thread and other threads in the annotation processing forum. Also see some of the features in Bruce Chapman's rapt project.
The NetBeans Jackpot project uses the model API from JSR 269 to support structured manipulation of source code; for more details, read one of Tom Ball's blog entries.
Posted by Joseph D. Darcy on September 26, 2006 at 05:28 PM PDT #