The class must be a true Java Bean, and have a no argument public constructor.
Properties of the bean are attributes for the eight Java primitive types and their associated Objects, or a String, and elements for all other types, as is the Oddjob standard.
| Example 1 | Creating a bean. |
Creating a bean.
<bean class="org.oddjob.arooa.types.PersonBean" name="John">
<friends>
<list>
<values>
<value value="Rod"/>
<value value="Jane"/>
<value value="Freddy"/>
</values>
</list>
</friends>
</bean>
Where the bean is:
package org.oddjob.arooa.types;
public class PersonBean {
private String name;
private String[] friends;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String[] getFriends() {
return friends;
}
public void setFriends(String[] friends) {
this.friends = friends;
}
}