private static String getMethodName(Method method) { final JsonRpcMethod jsonRpcMethod = ReflectionUtil.getAnnotation(method, JsonRpcMethod.class); if (jsonRpcMethod == null) { return method.getName(); } else { return jsonRpcMethod.value(); } }
JsonRpcMethod jsonRpcMethod = getAnnotation(method, JsonRpcMethod.class); if (jsonRpcMethod != null) paramsPassMode = jsonRpcMethod.paramsPassMode();
private JsonRpcError getResolverForException(Throwable thrownException, Method method) { JsonRpcErrors errors = ReflectionUtil.getAnnotation(method, JsonRpcErrors.class); if (hasAnnotations(errors)) { for (JsonRpcError errorDefined : errors.value()) { if (isExceptionInstanceOfError(thrownException, errorDefined)) { return errorDefined; } } } return null; }
private static String getMethodName(Method method) { final JsonRpcMethod jsonRpcMethod = ReflectionUtil.getAnnotation(method, JsonRpcMethod.class); if (jsonRpcMethod == null) { return method.getName(); } return jsonRpcMethod.value(); } }