-
Notifications
You must be signed in to change notification settings - Fork 335
Add support for binder customizers #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
`ConsumerEndpointCustomizer<PubSubInboundChannelAdapter>` and `ProducerMessageHandlerCustomizer<PubSubMessageHandler>` user beans can now be provided to customize the Pub/Sub binder. Fixes: #182.
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional test question.
@Test | ||
public void testProducerAndConsumerCustomizers() { | ||
baseContext.withUserConfiguration(PubSubBinderTestConfig.class) | ||
.withPropertyValues("spring.cloud.stream.bindings.input.group=testGroup") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test relies on a lot of internal Spring Cloud Stream implementation details. Would it be easier to retrieve the adapter/message source by name? Or customize ACK method and verify that instead of verifying the name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be possible, but I simply followed the test design for Kafka binder.
`ConsumerEndpointCustomizer<PubSubInboundChannelAdapter>` and `ProducerMessageHandlerCustomizer<PubSubMessageHandler>` user beans can now be provided to customize the Pub/Sub binder. Fixes: GoogleCloudPlatform#182.
ConsumerEndpointCustomizer<PubSubInboundChannelAdapter>
andProducerMessageHandlerCustomizer<PubSubMessageHandler>
user beans can now be provided to customize the Pub/Sub binder.Fixes: #182.