axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benazech Cédric <>
Subject RE: Bean Field Serialization/Deserialization
Date Tue, 23 Apr 2002 13:11:16 GMT
sorry. This mail took 1 day to arrive :/

I've partially seen the reponse in the Glen response of the mail named
"JavaBeans and metadata".
I've also seen that BeanInfo do not respect the order of PropertyDescriptor
declaration, so it's not possible to declared ordered "sequence" in wsdl
using BeanInfo only.


-----Message d'origine-----
De : Benazech Cédric []
Envoyé : lundi 22 avril 2002 14:52
À : ''
Objet : RE: Bean Field Serialization/Deserialization

I don't understand why you don't intend to use BeanInfo instead of creating
your own class descriptor (TypeDesc).
I know that PropertyDescriptor doesn't contain all the informations
required, but is it impossible to could extend it, or to use it by default,
or something like that ...


-----Message d'origine-----
De : R J Scheuerle Jr []
Envoyé : samedi 20 avril 2002 00:09
À :
Objet : 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
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)

View raw message