binds
Add multiple secondary type bindings to this definition. Used within withOptions { } block.
Parameters
classes
List of classes to bind as additional types
Example:
single { MyServiceImpl() } withOptions {
binds(listOf(ServiceInterface1::class, ServiceInterface2::class))
}Content copied to clipboard