Albert
10/18/2018, 8:48 AMsingle
module {
single("foo") { Repository<Foo>() }
single("bar") { Repository<Bar>() }
}
val fooRepo: Repository<Foo>() by inject("foo")
val barRepo: Repository<Bar>() by inject("bar")
Is there an alternative that I could use inject()
(without key) instead of making the injector aware what the key should be?tapchicoma
10/18/2018, 8:56 AMname
was introducedtapchicoma
10/18/2018, 8:58 AMinject()
.
With params - is to use module namespaces.Albert
10/18/2018, 9:29 AMdknapp
10/18/2018, 1:22 PMtapchicoma
10/18/2018, 2:22 PMdknapp
10/18/2018, 3:02 PM