@Test public void testGetTag1() throws Exception { BizSocketCall call = new BizSocketCall(); Method method = serviceClazz.getMethod("testGetTag1",Object.class,String.class,String.class); Object tag = new Object(); Object returnTag = call.getTag(method, tag, "", ""); assertNotNull(returnTag); }
public Object getTag(Method method,Object... args) { Annotation[][] annotationArray = method.getParameterAnnotations(); int index = 0; for (Annotation[] annotations : annotationArray) { for (Annotation annotation : annotations) { if (annotation instanceof Tag) { return args[index]; } } index ++; } return getDefaultTag(); }
BizSocketCall { public Object getTag(Method method,Object... args) { Annotation[][] annotationArray = method.getParameterAnnotations(); int index = 0; for (Annotation[] annotations : annotationArray) { for (Annotation annotation : annotations) { if (annotation instanceof Tag) { return args[index]; } } index ++; } return getDefaultTag(); } }
BizSocketCall { public Object getTag(Method method,Object... args) { Annotation[][] annotationArray = method.getParameterAnnotations(); int index = 0; for (Annotation[] annotations : annotationArray) { for (Annotation annotation : annotations) { if (annotation instanceof Tag) { return args[index]; } } index ++; } return getDefaultTag(); }  }
BizSocketCall { public Object getTag(Method method,Object... args) { Annotation[][] annotationArray = method.getParameterAnnotations(); int index = 0; for (Annotation[] annotations : annotationArray) { for (Annotation annotation : annotations) { if (annotation instanceof Tag) { return args[index]; } } index ++; } return getDefaultTag(); }  Observable<?> call(final BizSocketRxSupport bizSocketRxSupport, final Method method, Object... args); int getCommand(Request request,Method method, Object[] args); Object getDefaultTag(); Type getResponseType(Method method); Object getTag(Method method,Object... args); ByteString getRequestBody(BizSocketRxSupport bizSocketRxSupport, Method method, Object[] args); }
BizSocketCall { public Object getTag(Method method,Object... args) { Annotation[][] annotationArray = method.getParameterAnnotations(); int index = 0; for (Annotation[] annotations : annotationArray) { for (Annotation annotation : annotations) { if (annotation instanceof Tag) { return args[index]; } } index ++; } return getDefaultTag(); }  Observable<?> call(final BizSocketRxSupport bizSocketRxSupport, final Method method, Object... args); int getCommand(Request request,Method method, Object[] args); Object getDefaultTag(); Type getResponseType(Method method); Object getTag(Method method,Object... args); ByteString getRequestBody(BizSocketRxSupport bizSocketRxSupport, Method method, Object[] args);  }