BeanRequirement
From Tupelo Wiki
[edit]
Standard Beans
It assumed that any bean you use follows the bean specification, that is to say
- the bean has a no argument constructor
- each property has standard mutators (set and get) for each property. The convention is that property X has a setter named setX and a getter named getX.
Note that the property name is lower case. So for example, setFoo and getFoo are the mutators for a property named "foo". I addition it is required that
- every property is either a standard data type or a bean.
Such a bean we call a standard bean.
Of course specifying the mapping directly allows for arbitrary names of setters and getters,
One question is if there is some correspondence between fields in a bean and the properties. Not at this time. The name of the property is derived from the names of it mutators.
