类 DefaultAopProxyFactory
- java.lang.Object
- org.springframework.aop.framework.DefaultAopProxyFactory
- 所有已实现的接口:
Serializable,AopProxyFactory
public class DefaultAopProxyFactory extends Object implements AopProxyFactory, Serializable
DefaultAopProxyFactoryimplementation, creating either a CGLIB proxy or a JDK dynamic proxy.Creates a CGLIB proxy if one the following is true for a given
AdvisedSupportinstance:- the
optimizeflag is set - the
proxyTargetClassflag is set - no proxy interfaces have been specified
In general, specify
proxyTargetClassto enforce a CGLIB proxy, or specify one or more interfaces to use a JDK dynamic proxy.- 从以下版本开始:
- 12.03.2004
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
ProxyConfig.setOptimize(boolean),ProxyConfig.setProxyTargetClass(boolean),AdvisedSupport.setInterfaces(java.lang.Class<?>...), 序列化表格
构造器详细资料
DefaultAopProxyFactory
public DefaultAopProxyFactory()
方法详细资料
createAopProxy
public AopProxy createAopProxy(AdvisedSupport config) throws AopConfigException
从接口复制的说明:AopProxyFactoryCreate anAopProxyfor the given AOP configuration.- 指定者:
createAopProxy在接口中AopProxyFactory- 参数:
config- the AOP configuration in the form of an AdvisedSupport object- 返回:
- the corresponding AOP proxy
- 抛出:
AopConfigException- if the configuration is invalid