Overview of Kodein-DI
mainKodein-DI is a dependency injection and retrieval container for Kotlin and Java. It is designed to be small, fast, and optimized using Kotlin inline functions.
Key features include:
- Lazy Instantiation: Dependencies are instantiated only when needed.
- Order Independence: You do not need to manage the order of dependency initialization.
- Flexible Binding: Easily bind classes or interfaces to instances, providers, or factories.
- Type Safety: Unlike Java-based DI frameworks, it is not subject to type erasure.
- Idiomatic Kotlin: Uses a declarative DSL and is highly optimized for Kotlin, while remaining usable in plain Java.