isLiteConfigurationCandidate considers @ComponentScan and @ImportResource as indicators as well

Issue: SPR-11769
This commit is contained in:
Juergen Hoeller
2014-05-09 21:43:37 +02:00
parent 89fc3c0257
commit b4d447fc3d
2 changed files with 27 additions and 12 deletions

View File

@@ -72,27 +72,23 @@ public class ComponentScanAndImportAnnotationInteractionTests {
}
@Configuration
@ComponentScan("org.springframework.context.annotation.componentscan.simple")
static class Config1 {
static final class Config1 {
}
@Configuration
@Import(org.springframework.context.annotation.componentscan.simple.SimpleComponent.class)
static class Config2 {
static final class Config2 {
}
@Configuration
@Import(ImportedConfig.class)
static class Config3 {
static final class Config3 {
}
@Configuration
@ComponentScan("org.springframework.context.annotation.componentscan.simple")
public static class ImportedConfig {
public static final class ImportedConfig {
}
}