Beans
A Java bean is a class that exposes properties and events to an
environment such as JSF.
- A property is a named value of a given type that can be read
and/or written
- Properties are defined using the get/set convention, with first
letter of property name changed to upper case
- Recall UserBean.java
example with two properties, name and password
- get/set methods need not simply get or set an instance field. They
might also access a database.
In JSF applications, beans are the conduits between the user interface and
the back end of the application.