Configuration class processing uses MetadataReaderFactory for current ResourceLoader

Issue: SPR-14684
(cherry picked from commit 5405c07)
This commit is contained in:
Juergen Hoeller
2016-09-13 21:47:32 +02:00
parent bd24b97bd3
commit 669d5815c9

View File

@@ -205,6 +205,9 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
public void setResourceLoader(ResourceLoader resourceLoader) {
Assert.notNull(resourceLoader, "ResourceLoader must not be null");
this.resourceLoader = resourceLoader;
if (!this.setMetadataReaderFactoryCalled) {
this.metadataReaderFactory = new CachingMetadataReaderFactory(resourceLoader);
}
}
@Override