Since the
introduction of
annotations in
Java 5, numerous
frameworks have
made good use of
them in a runtime
context, but less
has been done to
take a
(
more)
Since the introduction of annotations in Java 5, numerous frameworks have made good use of them in a runtime context, but less has been done to take advantage of their compile-time capabilities. Writing annotation processors is straightforward and can turn what would be runtime problems into compile-time warnings or errors. This presentation discusses ways annotation processors can improve the development process and shows a complete example of a processor that provides compile-time verification of certain JPA invariants. Attendees will discover that writing annotation processors is not a black art but something that is safe to "try at home."
Copyright © 2013 Oracle and/or its affiliates. Oracle® is a registered trademark of Oracle and/or its affiliates. All rights reserved. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the "Materials"). The Materials are provided "as is" without any warranty of any kind, either express or implied, including without limitation warranties of merchantability, fitness for a particular purpose, and non-infringement.
Originally collected by
fetching...
(
less)