The JavaBeans functionality is provided by a set of classes and interfaces in the java.beans package.
In order to function as a JavaBean class, an object class must obey certain conventions about method naming, construction, and behaviour. These conventions make it possible to have tools that can use, reuse, replace, and connect Java Beans.
The required conventions are as follows:
TestPersonBean.java:
Bloch, Joshua (2008). Effective Java (Second ed.). Addison-Wesley. p. 13. ISBN 978-0-321-35668-0. 978-0-321-35668-0 ↩