HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 300841 thumbnail
User 336808 avatar

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.
  • 7
  • 4
  • 4242
  • 2

Comments

Add your comment
User 388907 avatar

MCII replied ago:

-1 votes Vote down Vote up Reply

"Could there be a better alternative?"

Question without answer.

User 281908 avatar

smv replied ago:

-1 votes Vote down Vote up Reply

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.

User 336808 avatar

fastcodejava replied ago:

1 votes Vote down Vote up Reply

It is supposed to be optional just like getter setters are. But this mechanism will be less verbose.

User 241850 avatar

ashishwave replied ago:

1 votes Vote down Vote up Reply

@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

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (4)