Fix SftpSupplier for explicit bean name

With SF 6.0 we don't support `--debug` for method argument names anymore.
We must use `@Qualifier` explicitly.
Otherwise, it might be resolved to something else what matches the expected type.
This commit is contained in:
Artem Bilan
2023-10-20 12:05:45 -04:00
parent 4e00985ca5
commit 7cd64c5f49

View File

@@ -32,6 +32,7 @@ import reactor.util.context.Context;
import org.springframework.aop.framework.ProxyFactoryBean;
import org.springframework.aop.support.NameMatchMethodPointcutAdvisor;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@@ -255,7 +256,7 @@ public class SftpSupplierConfiguration {
MonoProcessor<?> subscriptionBarrier,
SftpSupplierProperties sftpSupplierProperties,
FileConsumerProperties fileConsumerProperties,
@Nullable MessageHandler renameRemoteFileHandler) {
@Nullable @Qualifier("renameRemoteFileHandler") MessageHandler renameRemoteFileHandler) {
IntegrationFlowBuilder flowBuilder = FileUtils.enhanceFlowForReadingMode(IntegrationFlow
.from(IntegrationReactiveUtils.messageSourceToFlux(sftpMessageSource)