Make EmbeddedKafkaConfig a trait to allow other implementation #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm using Kafka and a schema registry to serialize messages.
I've made a trait that allow me to run a Kafka and a schema registry:
ConfluentConfig can't extend EmbeddedKafkaConfig because it's a case class so when using 'withRunningKafkaAndSchemaRegistry' I have to declare the implicit EmbeddedKafkaConfig:
I'd like to make EmbeddedKafkaConfig a trait then make ConfluentConfig implements it to avoid declaring each time the EmbeddedKafkaConfig.
Does it make sense? Maybe there's another solution?
I've tried with implicit conversion but without success.
If that make sense I'll make the modifications then a pull request.