Sebastian Schuberth
10/27/2022, 9:19 PMmodule {
singleOf(::CsvExporter) { bind<Exporter>() }
singleOf(::ExcelExporter) { bind<Exporter>() }
}
which throws org.koin.core.error.DefinitionOverrideException: Already existing definition for [Singleton:'dev.schuberth.stan.exporters.ExcelExporter',binds:dev.schuberth.stan.exporters.Exporter] at dev.schuberth.stan.exporters.Exporter::_root_
? The alternative syntax
module {
singleOf(::CsvExporter) bind Exporter::class
singleOf(::ExcelExporter) bind Exporter::class
}
does not throw and works just fine.arnaud.giuliani
10/28/2022, 4:47 PMSebastian Schuberth
10/30/2022, 8:02 AMarnaud.giuliani
10/31/2022, 10:03 AM