Skip to content

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
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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