Chapter 11. Describing a Bean

Table of Contents

BeanInfoFactory - retrieveing bean descriptions
BeanInfo - information about a bean
PropertyInfo - information about a property
EventInfo - information about an event

The BeanInfo provides a description of a POJO. This information allows the microcontainer to know what can be done with the bean.

This is similar to the BeanInfo provided by the java.beans package but some java environments like J2ME do not include this package because it has dependencies on AWT.

BeanInfoFactory - retrieveing bean descriptions

The BeanInfoFactory is used to create BeanInfos for a given class.

BeanInfo getBeanInfo(String className)

The default implementation is the IntrospectionBeanInfoFactory which uses reflection.