diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java index ecb33c249..e465617fb 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java @@ -30,7 +30,6 @@ import org.reactivestreams.Publisher; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.beans.factory.support.DefaultSingletonBeanRegistry; import org.springframework.cloud.stream.config.ListenerContainerCustomizer; import org.springframework.cloud.stream.function.IntegrationFlowFunctionSupport; @@ -43,6 +42,7 @@ import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationEventPublisher; import org.springframework.context.ApplicationEventPublisherAware; import org.springframework.context.Lifecycle; +import org.springframework.context.support.GenericApplicationContext; import org.springframework.integration.channel.AbstractMessageChannel; import org.springframework.integration.channel.AbstractSubscribableChannel; import org.springframework.integration.channel.DirectChannel; @@ -521,9 +521,8 @@ public abstract class AbstractMessageChannelBinder errorChannel); } MessageChannel defaultErrorChannel = null; if (getApplicationContext().containsBean(IntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME)) { @@ -547,8 +545,7 @@ public abstract class AbstractMessageChannelBinder errorBridge); } return errorChannel; } @@ -582,9 +579,8 @@ public abstract class AbstractMessageChannelBinder errorChannel); } ErrorMessageSendingRecoverer recoverer; if (errorMessageStrategy == null) { @@ -606,8 +601,7 @@ public abstract class AbstractMessageChannelBinder recoverer); MessageHandler handler; if (polled) { handler = getPolledConsumerErrorMessageHandler(destination, group, consumerProperties); @@ -627,8 +621,8 @@ public abstract class AbstractMessageChannelBinder errorHandler); errorChannel.subscribe(handler); } else { @@ -644,8 +638,7 @@ public abstract class AbstractMessageChannelBinder errorBridge); } else { logger.warn("The provided errorChannel '" + errorChannelName + "' is an instance of DirectChannel, " @@ -812,18 +805,6 @@ public abstract class AbstractMessageChannelBinder