JavaBeans
JavaBeans™ is a portable, platform-independent componentmodel written in the Java programming language. The JavaBeansarchitecture was built through a collaborative industry effort andenables developers to write reusable components in the Javaprogramming language.With the JavaBeans API you can create reusable, platform-independent components. Using JavaBeans-compliant applicationbuilder tools, you can combine these components into applets,applications, or composite components.JavaBean components are known as
beans
. Beans are dynamicin that they can be changed or customized. Through the design modeof a builder tool, you use the property sheet or bean customizer tocustomize the bean and then save (persist) your customized beans.
JavaBeans Concepts
The JavaBeans™ architecture is based on a component modelwhich enables developers to create software units called
components
.Components are self-contained, reusable software units that can bevisually assembled into composite components, applets, applications,and servlets using visual application builder tools. JavaBeancomponents are known as
beans
.A set of APIs describes a component model for a particularlanguage. The JavaBeans API
describes the core detailedelaboration for the JavaBeans component architecture.Beans are dynamic in that they can be changed or customized.Through the design mode of a builder tool you can use the Propertieswindow of the bean to customize the bean and then save (persist)your beans using visual manupulation. You can select a bean from thetoolbox, drop it into a form, modify its appearance and behavior, defineits interaction with other beans, and combine it and other beans intoan applet, application, or a new bean.The following list briefly describes key bean concepts.
•
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:
o
By adhering to specific rules, known as
design patterns
,when naming bean features. The
classexamines beans for these design patterns to discover bean
11