spring-attic/spring-cloud-stream-binder-kafka

[Feature Request] Allow to accept a list of customizers instead of a unique one for KafkaMessageChannelBinder

Closed this issue · 1 comments

Library: org.springframework.cloud:spring-cloud-stream-binder-kafka

Feature Request decscrition
Currently for KafkaMessageChannelBinder, it can only accept a single instance for ClientFactoryCustomizer, ProducerConfigCustomizer and ConsumerConfigCustomizer each. While this might be a block when there is need to carrry out secondary development on the binder configs/factories by using those customziers in a another library. Because in this way if both the library and users provide their own customziers, then neither of them can take effects.

Expect Solutions
For KafkaMessageChannelBinder, hope it can hold a list of those customizers instead of a single one. And then for the KafkaBinderConfiguration, it doesn't need to get the unique one, but can use the similar way of Spring Boot Kakfa Autoconfiguration to add all of them to the binder.