类 DefaultAopProxyFactory

java.lang.Object
infra.aop.framework.DefaultAopProxyFactory
所有已实现的接口:
AopProxyFactory, Serializable

public class DefaultAopProxyFactory extends Object implements AopProxyFactory, Serializable
Default AopProxyFactory implementation, creating either a CGLIB proxy or a JDK dynamic proxy.

Creates a CGLIB proxy if one the following is true for a given AdvisedSupport instance:

  • the optimize flag is set
  • the proxyTargetClass flag is set
  • no proxy interfaces have been specified

In general, specify proxyTargetClass to enforce a CGLIB proxy, or specify one or more interfaces to use a JDK dynamic proxy.

从以下版本开始:
4.0
作者:
Rod Johnson, Juergen Hoeller, Sebastien Deleuze, 海子 Yang
另请参阅: