Java Bean

Beans Java beans are reusable software components that developers program and manipulate visually using application builders.
Naming Convention You create java bean just by following a naming convention (design patterns).
  getX It means that the Bean developer want to get an X property.
  setX It means that the Bean developer want to set an X property.
  isX A boolean property of the Bean can be retrieved.
   
Introspection A development environment can determine what you, the developer using a Bean to build an application, can tinker with.
Properties A property list can be used to change properties of the bean and assign actions to events.
   
Patterns Simple property The set, get is are examples of simple pattern.
  Indexed property Similar to the set, get is pattern, but uses arrays. The get, set take an additional parameter, the index into the array.
  Bound property Notifies another objects when their value change. Bound property fires a PropertyChanged event.
  Constrainted property It allows other objects to accept or reject a change in this property value. An object can reject the change by throwing a PropertyVetoException.
     
Events A Java bean development environment identifies which event a developer can program for a Bean based on the pattern addListenerType() and removeListenerType() within a class.
  The bean itself should main a Vector that keeps track of the listeners for that event type.
  To inform a listener of an event, loop through the vector and dispatch an event to each listener.
     
Customizer interface It creates a customized property sheet for the Bean. It has the addPropertyChangeListener and removePropertyChangeListener. The listeners should be tracked in a vector in the Bean.
PropetyEditor interface This interface can be implemented to create a customized editor.
BeanInfo interface This interface can be implemented to provide specific information about properties, methods an events.
   
Persistence Java Beans achieves persistence through serialization. A Java Bean development environment can save the application the developer is building by writing out the objects in its construction area. It does this through serialization.
   
Displaying a Bean In order for the Bean to be large to be seen the getMinimumSize() should be overridden.
  getMinimumSize() It returns a Dimension object.
   
Distributing your Bean Beans come packaged in a JAR file. Bean’s should be created in JAR files.