Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
grpc java如何从StreamObserver获取泛型类型<;V>;_Java_Grpc - Fatal编程技术网

grpc java如何从StreamObserver获取泛型类型<;V>;

grpc java如何从StreamObserver获取泛型类型<;V>;,java,grpc,Java,Grpc,我想写一个aop到grpc接口的方法,如何从StreamObserver获取泛型类型 @Around(value = "execution(* com.test.grpc.controller.*.*(..))") public void around(ProceedingJoinPoint point) throws Throwable { long methodStartTime = System.currentTimeMillis(); Stri

我想写一个aop到grpc接口的方法,如何从StreamObserver获取泛型类型

@Around(value = "execution(* com.test.grpc.controller.*.*(..))")
    public void around(ProceedingJoinPoint point) throws Throwable {

        long methodStartTime = System.currentTimeMillis();

        String methodName = point.getSignature().getDeclaringTypeName() +
                "." + point.getSignature().getName();

        point.proceed();

    }

你不能,因为它是通用的

我对aop了解不够,无法提供替代方案