Bean interfaces and BeanInfo

The bean interface defines the property, event, and method features of your bean. These features can be used in visual composition when your bean is added to another bean. A BeanInfo class describes the bean and features that you add to the bean. Other features are inherited from the superclass of your bean unless you choose not to inherit features.

You can define a bean interface in the following ways:

When you create a new bean, it does not initially have a BeanInfo class. VisualAge creates a BeanInfo class when you add or promote the first feature that is not inherited, or when you explicitly direct VisualAge to create a BeanInfo class. You can create a BeanInfo class in the BeanInfo page.


Related concepts
Promotion of bean features
Default promoted feature names
Feature naming guidelines
How classes and beans are related
Bean design for visual composition
Generated code

Related procedures
Defining bean interfaces for visual composition