By fastcodejava
via fastcodejava.blogspot.com
Published: Nov 23 2009 / 11:44
This is a free eclipse plugin designed to help write code faster in spring based applications. This also has a junit generator part. One can have different junit tests for different kind of classes.



Comments
MCII replied ago:
"Could there be a better alternative?"
Question without answer.
smv replied ago:
Why bother making your attributes private if the annotation simply exposes it? There is *nothing* wrong with getters/setters as long as you're not exposing implementation.
ie: long getId() vs String getId().
The first makes it impossible to change my class' contract if I want to implement my identifiers as GUID ids. Sure it's fine to use an IDE's refactoring capabilities if you're the only consumer of the class but if you hid the implementation from the beginning you wouldn't have to refactor.
fastcodejava replied ago:
It is supposed to be optional just like getter setters are. But this mechanism will be less verbose.
ashishwave replied ago:
@smv
article does not say that it is replacing getter and setter(the hiding of the implementation detail), it is just saying that it is implementing getter and setter via a less and less and lesser verbose syntax using java5 inbuilt annotation feature.
this is very good work IMHO
Voters For This Link (7)
Voters Against This Link (4)