Spring 源码学习--XmlBeanDefinitionReader
private final ThreadLocal<Set<EncodedResource>> resourcesCurrentlyBeingLoaded =
??? ??? ??? new NamedThreadLocal<Set<EncodedResource>>("XML bean definition resources currently being loaded");
?
?finally {
?? ??? ??? ?currentResources.remove(encodedResource);
?? ??? ??? ?if (currentResources.isEmpty()) {
?? ??? ??? ??? ?this.resourcesCurrentlyBeingLoaded.remove();
?? ??? ??? ?}
?? ??? ?}