@ -138,12 +138,6 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
@@ -138,12 +138,6 @@ public class AnnotationConfigApplicationContext extends GenericApplicationContex
@ -132,16 +132,39 @@ public class ClassPathBeanDefinitionScanner extends ClassPathScanningCandidateCo
@@ -132,16 +132,39 @@ public class ClassPathBeanDefinitionScanner extends ClassPathScanningCandidateCo
Assert.notNull(registry,"BeanDefinitionRegistry must not be null");
this.registry=registry;
// Determine ResourceLoader to use.
if(this.registryinstanceofResourceLoader){
setResourceLoader((ResourceLoader)this.registry);
if(useDefaultFilters){
registerDefaultFilters();
}
setEnvironment(environment);
setResourceLoader(resourceLoader);
}
@ -192,7 +215,8 @@ public class ClassPathBeanDefinitionScanner extends ClassPathScanningCandidateCo
@@ -192,7 +215,8 @@ public class ClassPathBeanDefinitionScanner extends ClassPathScanningCandidateCo
@ -258,7 +282,8 @@ public class ClassPathBeanDefinitionScanner extends ClassPathScanningCandidateCo
@@ -258,7 +282,8 @@ public class ClassPathBeanDefinitionScanner extends ClassPathScanningCandidateCo
@ -86,16 +85,8 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -86,16 +85,8 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -103,8 +94,23 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -103,8 +94,23 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -131,74 +137,10 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -131,74 +137,10 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
if(useDefaultFilters){
registerDefaultFilters();
}
Assert.notNull(environment,"Environment must not be null");
@ -273,6 +215,70 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -273,6 +215,70 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -496,10 +502,12 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -496,10 +502,12 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -99,8 +99,6 @@ public class ComponentScanBeanDefinitionParser implements BeanDefinitionParser {
@@ -99,8 +99,6 @@ public class ComponentScanBeanDefinitionParser implements BeanDefinitionParser {
// Delegate bean definition registration to scanner class.
@ -128,7 +126,8 @@ public class ComponentScanBeanDefinitionParser implements BeanDefinitionParser {
@@ -128,7 +126,8 @@ public class ComponentScanBeanDefinitionParser implements BeanDefinitionParser {
@ -350,6 +350,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
@@ -350,6 +350,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
@ -872,6 +872,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -872,6 +872,9 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@ -47,6 +49,8 @@ public class DefaultResourceLoader implements ResourceLoader {
@@ -47,6 +49,8 @@ public class DefaultResourceLoader implements ResourceLoader {
@ -111,6 +115,26 @@ public class DefaultResourceLoader implements ResourceLoader {
@@ -111,6 +115,26 @@ public class DefaultResourceLoader implements ResourceLoader {
@ -104,14 +123,53 @@ public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory {
@@ -104,14 +123,53 @@ public class CachingMetadataReaderFactory extends SimpleMetadataReaderFactory {