Methods Summary |
---|
protected org.apache.axis.encoding.Serializer | getGeneralPurpose(java.lang.String mechanismType)Optimize construction of a BeanSerializer by caching the
type and property descriptors.
if (javaType == null || xmlType == null) {
return super.getGeneralPurpose(mechanismType);
}
if (serClass == EnumSerializer.class) {
return super.getGeneralPurpose(mechanismType);
}
return new BeanSerializer(javaType, xmlType, typeDesc,
propertyDescriptor);
|
public javax.xml.rpc.encoding.Serializer | getSerializerAs(java.lang.String mechanismType)
return (Serializer) super.getSerializerAs(mechanismType);
|
private void | init(java.lang.Class javaType)
// Sometimes an Enumeration class is registered as a Bean.
// If this is the case, silently switch to the EnumSerializer
if (JavaUtils.isEnumClass(javaType)) {
serClass = EnumSerializer.class;
}
typeDesc = TypeDesc.getTypeDescForClass(javaType);
if (typeDesc != null) {
propertyDescriptor = typeDesc.getPropertyDescriptors();
} else {
propertyDescriptor = BeanUtils.getPd(javaType, null);
}
|
private void | readObject(java.io.ObjectInputStream in)
in.defaultReadObject();
init(javaType);
|