Q

Understanding distinguishing traits of Java Beans

I have been trying to get my head around Java Beans, particularly how an invisible Java Bean differs from a standard class. I have read the Java Bean 1.01-A spec, and it says that things like Introspection, Customization, Events, Properties and Persistence are what tend to distinguish Beans. However, being new to Java Beans, I have not really understood the WAY in which these things should be implemented within a Java Bean. If someone could clarify or point me towards some useful resource, and particularly address what "Introspection" actually is, that would be great!
The JavaBeans specification defines a set of standard extensions to the Java programming language for building components. Some of these extensions are in the form of naming conventions and others are actual packages and classes. For a Java class to be technically classified as a Java Bean, it must implement the Serializable interface and expose a public "no-arg" constructor. The other extensions are optional.

Introspection is an extension to Java's standard reflection mechanism that allows Java Beans to expose more descriptive information about them. This is manifested using some subclass of java.beans.FeatureDescriptor and java.beans.BeanInfo.
This was first published in September 2003

Dig deeper on Java Web Services

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close