|
|
|
@ -97,10 +97,6 @@ public class InterceptorUtils {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static RpcRequest generateRequest(Class<?> clazz, Object o, Method method, Object[] objects){ |
|
|
|
|
if(isWithBindingParameter(method)){ |
|
|
|
|
replaceBindingParameter(method, objects); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RpcRequest rpcRequest = new RpcRequest(); |
|
|
|
|
rpcRequest |
|
|
|
|
.setID(Commons.getID()) |
|
|
|
@ -127,15 +123,6 @@ public class InterceptorUtils {
|
|
|
|
|
return rpcRequest; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Class<?>[] getArgTypes(Object[] objects){ |
|
|
|
|
int n = objects.length; |
|
|
|
|
Class<?>[] argTypes = new Class<?>[n]; |
|
|
|
|
for(int i=0; i<n; i++){ |
|
|
|
|
argTypes[i] = objects[i].getClass(); |
|
|
|
|
} |
|
|
|
|
return argTypes; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static boolean isNotImplemented(Method method) { |
|
|
|
|
return method.isAnnotationPresent(NotImplemented.class); |
|
|
|
|
} |
|
|
|
|