+ improve bean factory locator synchronization

This commit is contained in:
costin
2010-08-27 19:28:02 +03:00
parent 7028ef099b
commit 46d6a4cef7

View File

@@ -125,7 +125,10 @@ public class GemfireBeanFactoryLocator implements BeanFactoryLocator, BeanFactor
}
if (beanFactory == defaultFactory) {
defaultFactory = null;
synchronized (GemfireBeanFactoryLocator.class) {
defaultFactory = null;
canUseDefaultBeanFactory = beanFactories.isEmpty();
}
}
}