Tech Tutorials Database
GeekArticles Java J2SE
 

An annotation-based persistence framework

 
Author: javaworld.com
Category: J2SE
Comments (0)

Use J2SE 5 annotations to eliminate getters and setters Summary The getter/setter idiom has always been problematic; it allows too-broad access to the implementation of your classes, degrading maintainability as a consequence. The J2SE 5 annotation (or metadata) feature provides an alternative. Rather than using introspection to find get/set methods, you can "tag" an object with an annotation and then access that annotation at either compilation or at runtime. This article both...

Read More...




Sponsored Links




Read Next: Using Drools in Your Enterprise Java Application



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification:�
 
 Subscribe