When you create a composite bean, you might want some features of beans that are embedded within it to appear in the interface of the composite bean. For example, suppose you create a composite bean named ButtonSet containing a set of buttons that you want to reuse. When you add the ButtonSet composite bean to another composite, you want to be able to connect to each of the buttons.
To add features of embedded beans to the interface of a composite bean, you must promote them to the composite's interface. To add an entire embedded bean as a property of the composite bean, promote the this property of the embedded bean.
When you promote a feature of an embedded bean, VisualAge generates code that describes the promoted feature in the BeanInfo class for the composite bean. After the feature is promoted, you can manage the feature in the BeanInfo page the same as you manage features that you add there.
When you add a bean with promoted features to another bean, you can use the promoted features the same as you use other features of the bean. If you add a bean that has an embedded bean as a property, you can tear off the property as a Variable. Then, you can access the features of the embedded bean referenced by the Variable.
Bean interfaces and BeanInfo
Default promoted feature names
Torn-off properties
Promoting features of embedded beans