From 7e071c0839cfed8686f644a40c8937d073732818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20H=C3=A4user?= Date: Sat, 7 Oct 2017 23:30:21 +0200 Subject: [PATCH] Make configureContainer public for AdapterSpecs configureContainer is already public in the GatewaySpec, therefore making it also public in the AdapterSpecs. We came across this problem when we were testing M7. --- .../integration/amqp/dsl/AmqpInboundChannelAdapterDMLCSpec.java | 2 +- .../integration/amqp/dsl/AmqpInboundChannelAdapterSMLCSpec.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterDMLCSpec.java b/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterDMLCSpec.java index a930d610af..963a933674 100644 --- a/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterDMLCSpec.java +++ b/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterDMLCSpec.java @@ -36,7 +36,7 @@ public class AmqpInboundChannelAdapterDMLCSpec super(new DirectMessageListenerContainerSpec(listenerContainer)); } - AmqpInboundChannelAdapterDMLCSpec configureContainer(Consumer configurer) { + public AmqpInboundChannelAdapterDMLCSpec configureContainer(Consumer configurer) { configurer.accept((DirectMessageListenerContainerSpec) this.listenerContainerSpec); return this; } diff --git a/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterSMLCSpec.java b/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterSMLCSpec.java index 8f4c4c2289..9712730cbf 100644 --- a/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterSMLCSpec.java +++ b/spring-integration-amqp/src/main/java/org/springframework/integration/amqp/dsl/AmqpInboundChannelAdapterSMLCSpec.java @@ -36,7 +36,7 @@ public class AmqpInboundChannelAdapterSMLCSpec super(new SimpleMessageListenerContainerSpec(listenerContainer)); } - AmqpInboundChannelAdapterSMLCSpec configureContainer(Consumer configurer) { + public AmqpInboundChannelAdapterSMLCSpec configureContainer(Consumer configurer) { configurer.accept((SimpleMessageListenerContainerSpec) this.listenerContainerSpec); return this; }