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.


persistence:- 

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 java.io.serialize interface. If a bean does not implement this one can provide its own serialization.

customizes:-

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 bean.java 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

0 comments :

Post a Comment

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

Machine Learning

More

Advertisement

Java Tutorial

More

UGC NET CS TUTORIAL

MFCS
COA
PL-CG
DBMS
OPERATING SYSTEM
SOFTWARE ENG
DSA
TOC-CD
ARTIFICIAL INT

C Programming

More

Python Tutorial

More

Data Structures

More

computer Organization

More
Top