They use the reflection package. If you implement BeanInfo classes you
can control precisely what gets serialized/deserialized. Look in the
java.beans package for more info.

> -----Original Message-----
> From: Mike DuVall [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2003 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: Bean Serializer/ Deserializer
> 
> 
> I have a question about how the built in BeanSerializer and 
> BeanDeserializer 
> determines what getters and setters to call.
> 
> Do these classes just call every getter and setter on an a 
> bean, or do they 
> first look for data fields in the object, and then look for 
> getters and 
> setters that correspond to those data fields?  I'm guessing 
> they just look 
> for getters and setters regardless of what data fields may exist.
> 
> Also, is there some way to have the 
> BeanSerializer/Desserializer ignore 
> certain getters/setters?
> 
> Thanks,
> Mike
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 

Reply via email to