The Artima Developer Community
Sponsored Link

Java Community News
Validate Java EE Annotations with Annotation Processors

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Validate Java EE Annotations with Annotation Processors Posted: Jun 29, 2006 1:18 PM
Reply to this message Reply
Summary
A recent java.net article describes APT, the JDK 5 Annotation Processing Tool, and JSR-269, the Pluggable Annotation Processing API, scheduled for inclusion in Mustang.
Advertisement

In the article, Validate Java EE Annotations with Annotation Processors, author Jason Zhicheng Li illustrates the use of APT, a little-known command line tool for processing annotations that's included in JDK 5. He suggests that one potential use of APT is to validate semantic constraints on annotations at build time, such as that both @Stateless and @Stateful annotations may not be present for a session bean. He also gives a glimpse into the JSR-269 Annotation Processor, which is expected to be part of the Mustang release, and will provide a standard way to do annotation processing.

Beyond verifying semantic constraints on annotations, annotation processing allows you to use annotations as input driving code generation at build time. Annotations have now been around for a while. How have you put them to use?

Topic: Validate Java EE Annotations with Annotation Processors Previous Topic   Next Topic Topic: Adobe Releases Flex 2


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2017 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us