Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GH-3463: Allow @DltHandler on super class #3464

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

artembilan
Copy link
Member

Fixes: #3463

Currently, a @DltHandler-annotated method must be in the same class as the corresponding @KafkaListener annotation. Some logic might be really the same for different @KafkaListener services.

  • Use MethodIntrospector in the RetryableTopicAnnotationProcessor to be able to process methods from super classes as well

Fixes: spring-projects#3463

Currently, a `@DltHandler`-annotated method must be in the same class as the corresponding `@KafkaListener` annotation.
Some logic might be really the same for different `@KafkaListener` services.

* Use `MethodIntrospector` in the `RetryableTopicAnnotationProcessor` to be able to process methods from super classes as well
@sobychacko sobychacko merged commit 4dc0976 into spring-projects:main Aug 28, 2024
3 checks passed
spring-builds pushed a commit that referenced this pull request Aug 28, 2024
Fixes: #3463

Currently, a `@DltHandler`-annotated method must be in the same class as the corresponding `@KafkaListener` annotation.
Some logic might be the same for different `@KafkaListener` services.

* Use `MethodIntrospector` in the `RetryableTopicAnnotationProcessor` to be able to process methods from super classes as well

(cherry picked from commit 4dc0976)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow @DltHandler Method to be Defined in a parent class of class annotated with @KafkaListener
3 participants