Reflection and Bean Introspection
Some component models require that a component’s interface be explicitly defined via some interface definition language. However, JavaBeans merely requires the developer to follow a predefined set of naming conventions and “automagically” the builder tool is informed what properties are available, what methods can be called etc. You may wonder how this is possible. It is actually achieved via a process known as introspection. This chapter considers this process in some detail, primarily so that you understand what happens when a bean is used.
Unable to display preview. Download preview PDF.