Skip to content
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

Necessity of KafkaHandler on single method class #3807

Open
artembilan opened this issue Mar 18, 2025 · 0 comments
Open

Necessity of KafkaHandler on single method class #3807

artembilan opened this issue Mar 18, 2025 · 0 comments

Comments

@artembilan
Copy link
Member

Discussed in #3804

Originally posted by vitorsalves March 15, 2025
Hi everyone,
Quick question, in a recent project i had to implement serval KafkaListener all with similar annotations and i wanted to combine them in to one (In my case it was @component, @ConditionalOnProperty and @KafkaListener). However even if all my classes only had a singular method i still had to add @KafkaHandler. While this isn't a huge issue, it does feel a bit redundant.

I understand very well the need of @KafkaHandler in a multimethod @KafkaListener, but in the case a singular method class it seems unnecessary. So i ask, is there a reason that in the case of a class-level annotated KafkaListener with only a singular method, KafkaHandler is still required?

@artembilan artembilan added this to the Backlog milestone Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant