List of usage examples for org.springframework.aop.framework AdvisedSupport isProxyTargetClass
public boolean isProxyTargetClass()
From source file:org.springframework.aop.framework.DefaultAopProxyFactory.java
public AopProxy createAopProxy(AdvisedSupport advisedSupport) throws AopConfigException { if (advisedSupport.isOptimize() || advisedSupport.isProxyTargetClass() || advisedSupport.getProxiedInterfaces().length == 0) { if (!cglibAvailable) { throw new AopConfigException("Cannot proxy target class because CGLIB2 is not available. " + "Add CGLIB to the class path or specify proxy interfaces."); }/*from ww w. ja v a 2 s. c o m*/ return CglibProxyFactory.createCglibProxy(advisedSupport); } else { return new JdkDynamicAopProxy(advisedSupport); } }