Wednesday, 24 February 2016

Java: persistence and customizes

the two important components of java bean are persistence and customizes. Today in this post you can find what is persistence and customizes.


sometime there is a need to save the current position of the currently executed objects and that will be used in the late of the execution of the program. persistence is one of the major feature provided by java-bean that saves the current position of the java-bean i.e the properties and the variables of bean.

the ability to save the current position of java-bean is called persistence. To do this, one can implement the interface. If a bean does not implement this one can provide its own serialization.


some times the properties provided by a bean insufficient for bean program. At that time one can define customizes through  which you can customize your provides this feature.

the customizer allow user to modify the ben i.e., to change properties of a bean.

the  customizer is an interface provided by java bean with three methods in java.beans package.they are

void addPropertyChangeListener(PropertyChangeListener listener)
 void removePropertyChangeListener(PropertyChangeListener listener)
void setObject(Object bean)

by using the above three methods one can customize your own bean as you like


Post a Comment

Note: only a member of this blog may post a comment.

Find Us On Facebook

python tutorial


C Programming


Java Tutorial


Data Structures


MS Office


Database Management