Kirill Rozov
01/12/2020, 3:01 PMKirill Rozov
01/12/2020, 3:03 PMProxy<T>
and Lazy<T>
wrappers that resolve dependencies lazy and it will be good to have it build in the libraryarnaud.giuliani
01/15/2020, 8:16 AMKirill Rozov
01/15/2020, 8:20 AMclass Artifact(
lazyDep: Lazy<Dep1>
proxyDep: Proxy<Dep2>
)
module {
single {
Artifact(lazyDep = lazy<Dep1>(), proxyDep = proxy<Dep2>())
}
}
Kirill Rozov
01/15/2020, 8:21 AMarnaud.giuliani
01/15/2020, 8:21 AMarnaud.giuliani
01/15/2020, 8:22 AMinject()
here? 🤔Kirill Rozov
01/15/2020, 8:23 AMget
and lazy
, provider
In my own implementation
module {
single {
Artifact(lazyDep = get<Dep1>(), proxyDep = get<Dep2>())
}
}
But will be never successfully resolvedKirill Rozov
01/15/2020, 8:23 AMcan’t we useDo you mean property injection ?here? 🤔inject()
arnaud.giuliani
01/15/2020, 8:23 AMget
to resolve directlyarnaud.giuliani
01/15/2020, 8:24 AMKirill Rozov
01/15/2020, 8:26 AMno I mean, we haveBut it resolve all dependencies in a constructor when I’ll getto resolve directlyget
Artifact
. But I want to resolve them lazyarnaud.giuliani
01/15/2020, 8:26 AM