In this talk, I am overviewing methods to achieve DI with Kotlin. There seems no de facto standard yet, and here I am discussing 3 possible ways. It's shown each method has its pros and cons respectively.
Reference
- Inversion of Control Containers and the Dependency Injection pattern
http://martinfowler.com/articles/injection.html
- SalomonBrys/Kodein: Painless Kotlin Dependency Injection
https://github.com/SalomonBrys/Kodein
- KotlinでもMinimal Cake Pattern - Qiita
http://qiita.com/rabitarochan/items/c6709a3a2e2f5d36d4e2
- Scalaにおける最適なDependency Injectionの方法を考察する 〜なぜドワンゴアカウントシステムの生産性は高いのか〜 - Qiita
http://qiita.com/pab_tech/items/1c0bdbc8a61949891f1f