Understanding Java Beans Part I

Understanding Java Beans . Part I

Many or few java web developer think Java Beans is just a way of accessing a class properties through the assessors and mutators  i.e setter and getter method .


class Account


Private static String accName;

public  static String getAccName( )


return accName;


public static String setAccountName ( String newName )


accName = newName;



. The accName properties is been exposed through read and write ( setter and getter method ) .Accessing the class properties is just one of the basic usage of JB , there are many great things ascribing to JB .


JavaBeans provides a set of patterns that allow other Java classes to dynamically discover events and other metadata in addition to properties. If your main target or focus is to develop a custom component  (A new component should customize (or extend) one or more of the general component responsibilities )  , then a deep knowledge of JB is needed to make life easier , but if you are only working with UI and Application logic , then accessors and mutators knowledge is sufficient .


An operating system is a component, an application is a component, EJBs are components,

a library is a component, and so is the kitchen sink.

Java Bean Part II ….


One thought on “Understanding Java Beans Part I

Add yours

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: