Cool!!

What do you think about exploring the possibility of merging this expanded 
functionality with FieldDesc?  This could also speed deserialization since the 
resultant new FieldDesc could also implement Target and set the property/field in the 
appropriate manner.....

--Glen

> -----Original Message-----
> From: R J Scheuerle Jr [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 6:09 PM
> To: [EMAIL PROTECTED]
> Subject: Bean Field Serialization/Deserialization
> 
> 
> There has been some discussion and bugs related to the 
> serialization and
> deserialization of
> beans that do not have getter/setters but instead have public fields.
> 
> I am working on the following change.
> 
> Changes to utils.BeanPropertyDescriptor:
> *  Add constructor to set BPD with a java.lang.reflect.Field. 
>  So now a BPD
> can
> be constructed for a Field or it can be constructed with a read/write
> Method pair.
> * Get rid of the getReadMethod/getWriteMethod methods.
> * Instead have set/get methods which will use the methods if 
> available or
> use the field.
> * Have isReadable, isWriteable, isIndexed methods to query the BPD.
> 
> Changes to utils.BeanUtils
> * Add the BPD's for public fields that do not have getters/setters.
> 
> Changes to encoding/ser/BeanPropertyTarget
> * Change the getWriteMethod calls to use the new BPD.set 
> calls...simplifies
> this code.
> 
> Changes to encoding/ser/BeanSerializer & BeanDeserializer
> * Similar changes to remove getWriteMethod and getReadMethod 
> calls and use
> the set/get and other query methods.  This also simplifies the code.
> 
> Any comments ?
> 
> 
> Rich Scheuerle
> XML & Web Services Development
> 512-838-5115  (IBM TL 678-5115)
> 

Reply via email to