Another unsatisfactory solution would be to typeal...
# codereview
k
Another unsatisfactory solution would be to typealias
IncomingJsonMessageHandler
as
(String, String) -> String
and then just use the lambda constructor. But then you would need to tag your handler parameter with another annotation to inject properly