07-05-2013, 03:22 PM
Introduction to JavaBeans™
JavaBeans.doc (Size: 34 KB / Downloads: 21)
Component Framework
Component
– A reusable software module that is supplied in a binary form and can be used to compose applications
Container
– Provides the context that components can be assembled and interact with one another
Component Model
– Defines the architecture of how components can interact in a dynamic environment
Component Model Features
Property Management
Event Handling
Persistence and Versioning
Portability and Interoperability
Distributed Computing Support
What is a JavaBean?
JavaBeans Objectives
Provide a platform neutral component architecture
Simple to develop
Leverage existing Java technologies
Provide design-time support for visual builder tools
JavaBeans Characteristics
Properties
Event
Persistence
Introspection
Customization
Simple Properties
Represent a single value
The accessor methods should follow standard naming conventions
Boolean Properties
They are simple properties
The getter methods follow an optional design pattern
Indexed Properties
Represent an array of values
Bound Properties
Registered listeners object are notified when the value of the property changes
Listeners must implement the java.beans.PropertyChangeListener interface