What is JAVABEANS?

JavaBeans is the software component architecture for the Java language. Software components hide implementation, conform to interfaces, and encapsulate data, just like classes do in object-oriented languages. So how do components differ from classes? The answer: Almost all software components are also classes. What makes them components is their conformance to a software component specification.

JavaBeans turns classes into software components by providing several new features.

A JavaBean is a Java class that defines properties and that communicates with other Beans via events. Software components have properties, which are attributes of the object. Customization is the process of configuring a Bean for a particular task. Properties can be defined within the JavaBean class definition, or they can be inherited from other classes. A Bean, however, is not required to inherit from any particular class or interface.

JavaBeans that represent graphical components and that are meant to be visible must inherit from a java.awt.Component, so that they can be added to visual containers.

There are Beans that are not meant to be visible, and they are referred to as invisible Beans. They are identical to other JavaBeans except that they have no GUI representation.

FAQ Home

 
Printer friendly version of the FAQ-JAVA-What-Is-JAVABEANS page


Sponsored links

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
SFTP components for .NET
Add complete SSH and SFTP support to your .NET framework application
Virtual File System SDK
Create your own file systems in Windows and .NET applications
PureCM Software Configuration Management
Version control and integrated issue tracking - powerful and easy to use. Get your FREE trial now!

Advertisement



Free Magazine

Free Magazines
eWeek The essential technology information source for builders of e-business.... subscribe now

Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.