Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.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
在运行时确定建议的Spring代理?_Spring_Aop - Fatal编程技术网

在运行时确定建议的Spring代理?

在运行时确定建议的Spring代理?,spring,aop,Spring,Aop,对于一个已被SpringAOP作为JDK动态代理代理的类,如何在运行时(在我的调试器中)确定其底层类 [编辑] 经过一点搜索,并且此解决方案是特定于Spring的,您可以执行以下操作: final TargetClassAware advised = (TargetClassAware) foo; System.err.println("Advised: " + advised.getTargetClass());

对于一个已被SpringAOP作为JDK动态代理代理的类,如何在运行时(在我的调试器中)确定其底层类

[编辑]

经过一点搜索,并且此解决方案是特定于Spring的,您可以执行以下操作:

final TargetClassAware advised = (TargetClassAware) foo;
System.err.println("Advised: " + advised.getTargetClass());