提交 ca91956b 编写于 作者: S Stephane Nicoll

Do not retain BeanFactory ref

This is a rework of fd7153ff that also now clears the reference to the
BeanFactory when the context is disposed.

Issue: SPR-12518
上级 5b0a0f4d
......@@ -339,10 +339,11 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
}
/**
* Clear the cached transaction managers.
* Clear the cache.
*/
protected void clearTransactionManagerCache() {
this.transactionManagerCache.clear();
this.beanFactory = null;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册