Why has the accessor methods from the JavaBean specification become the standard for Java development?
Posted
by
Dakotah North
on Programmers
See other posts from Programmers
or by Dakotah North
Published on 2012-06-01T19:20:49Z
Indexed on
2012/06/01
22:50 UTC
Read the original article
Hit count: 204
The JavaBeans Specification describes a JavaBean as
A Java Bean is a reusable software component that can be manipulated visually in a builder tool
Since the majority of the lines of code that are written seem to have nothing to do with being manipulated visually in a builder tool, why has the JavaBean specification been the "way" to write object oriented code?
I would like to forgo the traditional getter/setter in favor of Fluent Interfaces all throughout the code, not just in builders but fear doing so since this is traditionally not the way way object oriented code is written in Java.
© Programmers or respective owner