Prodcer/Consumer config customizer changes
* Provide binding and destination names to the configure method in ProducerConfigCustomizer and ConsumerConfigCustomizer so that those can be used in the customization. * Modify tests and docs Resolves https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/996
This commit is contained in:
committed by
Gary Russell
parent
675c2e4940
commit
42c9af019e
@@ -768,3 +768,5 @@ you can implement the following customizers.
|
||||
Both of these interfaces provide a way to configure the config map used for consumer and producer properties.
|
||||
For example, if you want to gain access to a bean that is defined at the application level, you can inject that in the implementation of the `configure` method.
|
||||
When the binder discovers that these customizers are available as beans, it will invoke the `configure` method right before creating the consumer and producer factories.
|
||||
|
||||
Both of these interfaces also provide access to both the binding and destination names so that they can be accessed while customizing producer and consumer properties.
|
||||
|
||||
Reference in New Issue
Block a user