Java Beans

by E-Computer Concepts March 30, 2020 at 9:42 am

JavaBeans is the software component architecture for Java. It allows to efficiently constructing applications by configuring and connecting components called Beans.

The Beans to be written and tested a rich set of mechanisms for interaction between objects, along with common actions most objects will need to support such as persistence and event handling,

The BeanBox

The BeanBox is a very simple test container. It allows you to try out both the BDK example beans and your awn newly created beans.

The BeanBox allows you to:

  • Drop beans onto a composition window.
  • Resize and move beans around.
  • Edit the exported properties of a bean.
  • Connect a bean event source to an event handler method.
  • Connect together bound properties on different beans.
  • Save and restore sets of beans.
  • Make applets from beans.
  • Get an introspection report on a bean.
  • Add new beans from JAR files.

Note : The BeanBox is intended as a test container and as a reference base, but it is not intended as a serious application development tool.

Advantages of Java Beans

A software component architecture provides standard mechanisms to deal with software building blocks. The following list enumerates some of the specific benefits that Java technology provides for a component developers.

A Bean obtains all the benefits of Java’s “write-once, run anywhere” paradigm.

A Bean may be designed to opearte correctly in different locates, which makes it useful in global markets. Auxiliary software can be provided to help a person configure a Bean. This software is only needed when the design-time parameters for that component are being set.

It does not need to be included in the run-time environment. The configuration settings of a Bean can be saved in persistent storage and restored at a later time. A Bean may register to receive events from other objects and can generate events that are sent to other objects.

Add Comment