Webcam Chat QuickBooks Advice international calling cards international phone cards
JavaBeat Java Books Certifications Certifications Kits Articles Tutorials Tips QNA Book Store Interview Questions SCJP 1.5 SCJP 1.6 SCWCD 5.0 SCBCD 5.0 SCEA SCJA Feeds
Submit Links | Latest Links | Login (want to submit links for DLinks? send a mail to krishnas@javabeat.net)

getter and setter generation with annotations

I discovered lombok which uses annotations to generate getters and setters. http://projectlombok.org/index.html Is this recommended? Another question is: Is it better to make all the fields which should be accessed by other objects public and access fields instead of getters/setters - encapsulation is therefore secured? So I do not need to write that boilerplate code an do not need something like lombok.

Topic: java

Add your comments

 

JavaBeat Website (2004-2011), India
javabeat | advertise | about us | contact | useful resources
Copyright (2004 - 2011), JavaBeat


Technology Blogs
Technology blogs Technology Blogs
blog log