module

Compiler Plugin Stub - Load the module generated from a single @Module annotated class into this KoinApplication. The compiler plugin transforms this call to inject the module generated from the type parameter T via IR.

Replaces the previous T().module pattern with a type-safe reified call.

Usage:

startKoin {
modules<MyModule>()
}
// Plugin transforms to:
// startKoin {
// modules(MyModule().module())
// }

Parameters

T

Type annotated with @Module