ProxyFactory优化

master
linlei 2024-04-29 11:49:10 +08:00
parent 7ce214641f
commit b8552e2309
1 changed files with 14 additions and 0 deletions

View File

@ -194,3 +194,17 @@ protected final synchronized AopProxy createAopProxy() {
}
```
在`org.springframework.aop.framework.ProxyCreatorSupport#getAopProxyFactory`
方法中用于返回该代理配置所使用的AOP代理工厂AopProxyFactory。在`ProxyCreatorSupport()`构造方法中,`aopProxyFactory`
对象被初始化为`DefaultAopProxyFactory`的实例。因此,当调用`getAopProxyFactory()`方法时,将返回一个`DefaultAopProxyFactory`
对象该对象用于创建AOP代理对象。
```java
/**
* 返回该代理配置使用的AopProxyFactory。
*/
public AopProxyFactory getAopProxyFactory() {
return this.aopProxyFactory;
}
```