Skip to content

@KafkaListener & @KafkaPublisher support for @Json #241

Closed
GoodforGod opened this issue Aug 3, 2023 · 0 comments · Fixed by #243
Closed

@KafkaListener & @KafkaPublisher support for @Json #241

GoodforGod opened this issue Aug 3, 2023 · 0 comments · Fixed by #243
Assignees
Labels
improvement Improvements to existing features module: kafka Related to module - kafka
Milestone

Comments

@GoodforGod
Copy link
Contributor

Features will allow to mark Listener/Publisher custom value / Record Generic with @Json and this will result in automatic generation of Deserialized/Serialized for such with in/out of Json without the need for developer to write custom Json mapper for such values

Custom value:

public class KafkaListenerClass {


    @KafkaListener("test.config.path")
    public void process(@Json JsonEvent value) {
    }
}

Record generic:

public class KafkaListenerClass {
    @KafkaListener("test.config.path")
    public void process(ConsumerRecord<String, @Json JsonEvent> event) {
    }
}
@GoodforGod GoodforGod added improvement Improvements to existing features module: kafka Related to module - kafka labels Aug 3, 2023
@GoodforGod GoodforGod added this to the 1.0.0.RC1 milestone Aug 3, 2023
@GoodforGod GoodforGod self-assigned this Aug 3, 2023
Squiry added a commit that referenced this issue Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement Improvements to existing features module: kafka Related to module - kafka
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant