use of org.apache.axis.encoding.ser.BeanSerializerFactory in project Lucee by lucee.
the class TypeMappingUtil method registerDefaults.
public static void registerDefaults(TypeMappingRegistry tmr) {
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), new StringDeserializerFactory(String.class, RPCConstants.STRING_QNAME));
}
Aggregations