Open ruskaof opened 3 months ago
Welcome to Springwolf. Thanks a lot for reporting your first issue. Please check out our contributors guide and feel free to join us on discord.
Hi @ruskaof, Thank you for the feature request and sharing this new KafkaListener feature.
Feel free to contribute, a good starting point is likely the KafkaListenerUtil
in the kafka-plugin at https://github.com/springwolf/springwolf-core/blob/f0a0fccabf4cb2e20bb58c7e8493791424401dfe/springwolf-plugins/springwolf-kafka-plugin/src/main/java/io/github/springwolf/plugins/kafka/asyncapi/scanners/common/KafkaListenerUtil.java#L29
We are happy to assist, either here on GitHub or on Discord.
Describe the feature request According to the spring-kafka docs (https://docs.spring.io/spring-kafka/reference/kafka/receiving-messages/listener-annotation.html) it is possible to reference the current bean of a method annotated
@KafkaListener
using__listener
, but this pseudo bean is not resolved by springwolf.Example:
The kafka listener itself is created successfully in this case, but there is a
SpelEvaluationException
thrown in springwolf code:Motivation This feature should be implemented to make springwolf more compatible with
org.springframework.kafka.annotation.KafkaListener
annotation.Technical details I haven't studied the source code of springwolf enough to know how to implement this.
Describe alternatives you've considered I can always replace usages of the
__listener
bean to something else.