Package com.jd.glowworm

Examples of com.jd.glowworm.PBException


        if (type instanceof Class<?>) {
            return (Class<?>) type;
        } else if (type instanceof ParameterizedType) {
            return getRawClass(((ParameterizedType) type).getRawType());
        } else {
            throw new PBException("TODO");
        }
    }
View Full Code Here


        }
    }

    public ObjectSerializer createJavaBeanSerializer(Class<?> clazz, Map<String, String> aliasMap) throws Exception {
        if (clazz.isPrimitive()) {
            throw new PBException("unsupportd class " + clazz.getName());
        }

        List<FieldInfo> getters = TypeUtils.computeGetters(clazz, aliasMap, true);

        String className = getGenClassName(clazz);
View Full Code Here

        try {
            return ASMDeserializerFactory.getInstance().createJavaBeanDeserializer(this, clazz, type);
        } catch (ASMException asmError) {
            return new JavaBeanDeserializer(this, clazz, type);
        } catch (Exception e) {
            throw new PBException("create asm deserializer error, " + clazz.getName(), e);
        }
    }
View Full Code Here

                parseObject(retConcurrentHashMap, null, tmpMapSz);
                return retConcurrentHashMap;
              /*case com.jd.glowworm.asm.Type.ARRAY:
                  return scanBool();*/
              default:
                  throw new PBException("没找到对应的解析类型 " + tmpType);
          }
    }
    catch(Exception ex)
    {
      ex.printStackTrace();
View Full Code Here

                    collection.addAll((Collection) value);
                } else {
                    method.invoke(object, value);
                }
            } catch (Exception e) {
                throw new PBException("set property error, " + fieldInfo.getName(), e);
            }
        } else if (fieldInfo.getField() != null) {
            try {
                fieldInfo.getField().set(object, value);
            } catch (Exception e) {
                throw new PBException("set property error, " + fieldInfo.getName(), e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.jd.glowworm.PBException

Copyright © 2018 www.massapicom. 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.