📄 springutils.java
字号:
package org.codehaus.xfire.spring;import org.springframework.aop.framework.Advised;import org.springframework.aop.support.AopUtils;public class SpringUtils{ /** * Gets the actual bean underlying the AOP proxies. * * @param bean * @return * @throws Exception */ public static Object getUserTarget(Object bean) throws Exception { if (AopUtils.isAopProxy(bean) && bean instanceof Advised) { Advised advised = (Advised) bean; bean = advised.getTargetSource().getTarget(); return getUserTarget(bean); } return bean; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -