sdeleuze
08/14/2017, 2:20 PMis the equivalent ofRoutes(ref(), ref())(types are not required thanks to Kotlin type inference) whereRoutes(ref<UserHandler>(), ref<MessageSource>())is a shortcut forref<UserHandler>(). We may provide an alternative syntax for autowiring classes by constructor which is pretty common in Koltin.applicationContext.getBean(UserHandler::class.java)