This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.kodein.di.DirectDIAware | |
import org.kodein.di.instance | |
/** | |
* Auto resolve a class dependencies by using its constructor reference. | |
* The resolution is done at compile time by leveraging inline functions, no reflection is required. | |
* | |
* Example: | |
* ``` | |
* val myModule = DI.module("myModule") { |