Kirill Rozov
01/12/2020, 3:01 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>())
}
}
arnaud.giuliani
01/15/2020, 8:21 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 resolvedcan’t we useDo you mean property injection ?here? 🤔inject()
arnaud.giuliani
01/15/2020, 8:23 AMget
to resolve directlyKirill 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