Gustorn
09/09/2020, 9:20 PMclass Service(private val logger: Logger)
module {
factory { Service(get()) }
// This is the part I'd like to happen automatically, without the need for a "by inject"
// Inside "Service" this should be called with Service::class.java
factory { cls: Class<*> -> LoggerFactory.getLogger(cls) }
}
Is there any way to achieve this? I tried to look through all the available docs but haven't found anything. Thanks in advance