axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Property Descriptor Caching
Date Wed, 03 Jul 2002 19:21:05 GMT
Every time a Bean/Simple Serializer/Deserializer is invoked, it constructs 
a PropertyDescriptor array (and possibly PropertyDescriptor Map).

I have code in my sandbox that should improve performance.

I added the following two methods to TypeDesc, which get and cache the 
array and map:

public BeanPropertyDescriptor[] getPropertyDescriptors();
public Map getPropertyDescriptorMap();  // propertyMap used in the 
Bean/Simple Deserializers

I changed the Bean/Simple Serializer/Deserializer to get the 
propertyDescriptor array/map via the above methods.

Having these methods on the TypeDesc allows extended serializers to 
get/cache this information in a uniform way.

Any objections to adding this code?

Rich 'Shirley' Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115  (IBM TL 678-5115)

View raw message