|
|
|
@ -24,7 +24,6 @@ import org.springframework.beans.factory.BeanFactory;
|
|
|
|
|
import org.springframework.beans.factory.BeanFactoryAware;
|
|
|
|
|
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigurationPackages;
|
|
|
|
|
import org.springframework.core.annotation.AnnotationAttributes;
|
|
|
|
|
import org.springframework.core.type.AnnotationMetadata;
|
|
|
|
|
import org.springframework.integration.annotation.IntegrationComponentScan;
|
|
|
|
|
import org.springframework.integration.config.IntegrationComponentScanRegistrar;
|
|
|
|
@ -53,7 +52,8 @@ class IntegrationAutoConfigurationScanRegistrar extends IntegrationComponentScan
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected Collection<String> getBasePackages(AnnotationAttributes componentScan, BeanDefinitionRegistry registry) {
|
|
|
|
|
protected Collection<String> getBasePackages(AnnotationMetadata importingClassMetadata,
|
|
|
|
|
BeanDefinitionRegistry registry) {
|
|
|
|
|
return (AutoConfigurationPackages.has(this.beanFactory) ? AutoConfigurationPackages.get(this.beanFactory)
|
|
|
|
|
: Collections.emptyList());
|
|
|
|
|
}
|
|
|
|
|