I have a question. At work we are currently experi...
# server
m
I have a question. At work we are currently experimenting with Kotlin and Spring Boot. One of the nice things of Java and Spring Boot was, that if you had something like "public interface EventProcessor<T>" in Java you could autowire a list of classes that implement that interface. While trying to do this today with Kotlin it didn't work. Why is that so? And is there an alternative to do a similar thing "the kotlin way"? Currently we just transform the object and based on the type we execute a different processor. This is done via a "when (x)..." but that isn't as nice.