06/23/2022, 10:51 AM
Jackson - Generics- T as reified parameter I'm trying to implement an abstract message-consumer with kotlin and jackson for RabbitMQ. The setup for the consumers works fine, so I omit that in the code-snippets. The Problem is only in regard to parsing the String-payload to a generic-type object. My Goal is to have an abstract class like : abstract class AbstractRetryConsumer(val queueName:String) : MessageListener { // Autowiring and seting up the Beans ... override fun onMessage(msg: Message) { val msgPayload =...