Do not retain BeanFactory ref

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

Issue: SPR-12518
This commit is contained in:
Stephane Nicoll
2015-04-20 17:05:59 +02:00
parent 5b0a0f4db5
commit ca91956bdb

View File

@@ -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;
}
/**