kohesive / injekt

Dependency Injection for Kotlin
MIT License
235 stars 19 forks source link

Dependency injection by type alias #40

Open raderio opened 6 years ago

raderio commented 6 years ago

Have you analyzed implementing Dependency injection by type alias?

object RedisCache { }
typealias Cache = RedisCache

If we need to change it

object MongoCache { }
typealias Cache = MongoCache

It is done in compile time