JavaBeans
is defined as stated below:
- The class must have a public default constructor (with no arguments)
- All properties are private (use getters/setters)
- Implements Serializable
What if everything is obeyed to the above standard, except that I don't have any mutator setters and instead, immutator setters like using Builder pattern
. Is it still considered to be a JavaBean
? Or else, it is not a JavaBean
anymore, and that means a JavaBean
is always mutable?