kandraKodein

fun Application.kandraKodein()

Extends the application's Kodein DI container with a KandraRepository and KandraSuspendRepository binding for every entity registered in SchemaRegistry.

Must be called after install(Kandra). All repos share the plugin's BatchEngine, so shutdown protection and in-flight tracking apply to DI-managed repos too.

Repositories are bound by tag:

  • KandraRepository<*> tagged with "${EntityName}"

  • KandraSuspendRepository<*> tagged with "${EntityName}Suspend"