@Test public void getResClass() { Class res = protostuffHelper.getResClass( ProtostuffService.class.getCanonicalName(), "echoStr"); Assert.assertTrue(res == ExampleObj.class); }
public Class getResClass(String service, String methodName) { String key = service + "#" + methodName; Class reqClass = responseClassCache.get(key); if (reqClass == null) { String interfaceClass = ConfigUniqueNameGenerator.getInterfaceName(service); Class clazz = ClassUtils.forName(interfaceClass, true); loadProtoClassToCache(key, clazz, methodName); } return responseClassCache.get(key); }
ProtostuffHelper { public Class getResClass(String service, String methodName) { String key = service + "#" + methodName; Class reqClass = responseClassCache.get(key); if (reqClass == null) { String interfaceClass = ConfigUniqueNameGenerator.getInterfaceName(service); Class clazz = ClassUtils.forName(interfaceClass, true); loadProtoClassToCache(key, clazz, methodName); } return responseClassCache.get(key); } }
ProtostuffHelper { public Class getResClass(String service, String methodName) { String key = service + "#" + methodName; Class reqClass = responseClassCache.get(key); if (reqClass == null) { String interfaceClass = ConfigUniqueNameGenerator.getInterfaceName(service); Class clazz = ClassUtils.forName(interfaceClass, true); loadProtoClassToCache(key, clazz, methodName); } return responseClassCache.get(key); }  }
ProtostuffHelper { public Class getResClass(String service, String methodName) { String key = service + "#" + methodName; Class reqClass = responseClassCache.get(key); if (reqClass == null) { String interfaceClass = ConfigUniqueNameGenerator.getInterfaceName(service); Class clazz = ClassUtils.forName(interfaceClass, true); loadProtoClassToCache(key, clazz, methodName); } return responseClassCache.get(key); }  Class getReqClass(String service, String methodName); Class getResClass(String service, String methodName); }
ProtostuffHelper { public Class getResClass(String service, String methodName) { String key = service + "#" + methodName; Class reqClass = responseClassCache.get(key); if (reqClass == null) { String interfaceClass = ConfigUniqueNameGenerator.getInterfaceName(service); Class clazz = ClassUtils.forName(interfaceClass, true); loadProtoClassToCache(key, clazz, methodName); } return responseClassCache.get(key); }  Class getReqClass(String service, String methodName); Class getResClass(String service, String methodName);  }