Examples of BeanDeserializerFactory


Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

    TypeMappingRegistry reg = context.getTypeMappingRegistry();
    TypeMapping tm = (TypeMapping) reg.createTypeMapping();
    tm.setSupportedEncodings(new String[] {Constants.URI_DEFAULT_SOAP_ENC});
    reg.register(Constants.URI_DEFAULT_SOAP_ENC, tm);

    tm.register(SuperBean.class, superTypeQName, new BeanSerializerFactory(SuperBean.class,superTypeQName), new BeanDeserializerFactory(SuperBean.class,superTypeQName));
    tm.register(DerivatedBean.class, inheritedTypeQName, new BeanSerializerFactory(DerivatedBean.class,inheritedTypeQName), new BeanDeserializerFactory(DerivatedBean.class,inheritedTypeQName));
  }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

        // And deploy the type mapping
        Class javaType = Data.class;
        QName xmlType = new QName("urn:foo", "Data");
        BeanSerializerFactory   sf = new BeanSerializerFactory(javaType, xmlType);
        BeanDeserializerFactory df = new BeanDeserializerFactory(javaType, xmlType);

        TypeMappingRegistry tmr = engine.getTypeMappingRegistry();
        TypeMapping tm =
                tmr.getOrMakeTypeMapping(Constants.URI_DEFAULT_SOAP_ENC);
        tm.register(javaType, xmlType, sf, df);
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

            Service service = new Service();
            call = (Call) service.createCall();

            call.registerTypeMapping(Bean.class, m_beanQName,
                new BeanSerializerFactory(Bean.class, m_beanQName),
                new BeanDeserializerFactory(Bean.class, m_beanQName));
        return call;
    }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

            Service service = new Service();
            call = (Call) service.createCall();

            call.registerTypeMapping(Bean.class, m_beanQName,
                new BeanSerializerFactory(Bean.class, m_beanQName),
                new BeanDeserializerFactory(Bean.class, m_beanQName));
        return call;
    }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

    TypeMapping tm = tmr.getDefaultTypeMapping();
    if(!tm.isRegistered(QueryBean.class, RPCConstants.QUERY_QNAME))
      tm.register(QueryBean.class,
                RPCConstants.QUERY_QNAME,
                new BeanSerializerFactory(QueryBean.class,RPCConstants.QUERY_QNAME),
                new BeanDeserializerFactory(QueryBean.class,RPCConstants.QUERY_QNAME));
   
    //Adding custom string serialization for non printable characters.
    tm.register(String.class,
        RPCConstants.STRING_QNAME,
        new StringSerializerFactory(String.class, RPCConstants.STRING_QNAME),
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

    if(tm.isRegistered(clazz, qName)) return;
    tm.register(
          clazz,
            qName,
          new BeanSerializerFactory(clazz, qName),
          new BeanDeserializerFactory(clazz, qName));
   
   
  }
View Full Code Here

Examples of org.apache.axis.encoding.ser.BeanDeserializerFactory

            * these methods do not need to worry about creating a serializer.
            */
            internalRegister( javaType,
                              xmlType,
                              new BeanSerializerFactory(javaType, xmlType),
                              new BeanDeserializerFactory(javaType, xmlType) );
        }

        //log.debug("getTypeQName xmlType =" + xmlType);
        return xmlType;
    }
View Full Code Here

Examples of org.apache.axis2.databinding.deserializers.BeanDeserializerFactory

            return new SimpleDeserializerFactory(cls, new QName("xsd", cls.getName()));
        }

       

        return new BeanDeserializerFactory(BeanManager.getTypeDesc(cls));
    }
View Full Code Here

Examples of org.apache.axis2.databinding.deserializers.BeanDeserializerFactory

    public DeserializerFactory getDeserializerFactory(Class cls) {
        if (isPrimitive(cls)) {
            return new SimpleDeserializerFactory(cls, new QName("xsd", cls.getName()));
        }

        return new BeanDeserializerFactory(BeanManager.getTypeDesc(cls));
    }
View Full Code Here

Examples of org.apache.axis2.databinding.deserializers.BeanDeserializerFactory

            return new SimpleDeserializerFactory(cls, new QName("xsd", cls.getName()));
        }

       

        return new BeanDeserializerFactory(BeanManager.getTypeDesc(cls));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.