Пример #1
0
  public BeanDeserializerFactory(Class javaType, QName xmlType) {
    super(BeanDeserializer.class, xmlType, javaType);

    // Sometimes an Enumeration class is registered as a Bean.
    // If this is the case, silently switch to the EnumDeserializer
    if (JavaUtils.isEnumClass(javaType)) {
      deserClass = EnumDeserializer.class;
    }

    typeDesc = TypeDesc.getTypeDescForClass(javaType);
    propertyMap = getProperties(javaType, typeDesc);
  }
Пример #2
0
 private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
   in.defaultReadObject();
   typeDesc = TypeDesc.getTypeDescForClass(javaType);
   propertyMap = getProperties(javaType, typeDesc);
 }