Bean Introspection  «Prev  Next»
Lesson 10

JavaBeans Introspection and Structure Conclusion

This module discussed the structure of JavaBeans by taking a look at introspection and how Beans expose information about themselves. You found out that Beans support introspection in two different ways: either automatically using design patterns or explicitly by providing information using a special class. The module culminated in the creation of a basic Bean from scratch, which pulled together much of what you have learned throughout the entire course thus far.

Builder Tools

Builder tools discover a bean's features (that is, its properties, methods, and events) by a process known as introspection. Beans support introspection in two ways:
  1. By adhering to specific rules, known as design patterns, when naming bean features
  2. By explicitly providing property, method, and event information with a related bean information class.


Properties

  1. Properties are the appearance and behavior characteristics of a bean that can be changed at design time
  2. Beans expose properties so they can be customized at design time
  3. Builder tools introspect on a bean to discover its properties and expose those properties for manipulation
  4. Customization is supported in two ways:
    1. by using property editors
    2. by using more sophisticated bean customizers

Java Beans - Quiz

Before you move on to the next module, make sure to click the Quiz link below to take a multiple-choice quiz that poses questions addressing all of the lessons you have worked through in this module.
Java Beans - Quiz
In the next module you learn how Beans communicate using events.
You also learn about event listeners and sources, as well as event adapters, which make event handling much cleaner and more versatile under the Java delegation event model.