apatrida
04/01/2018, 1:21 AMdirect
thing, making a bunch of my injection via default constructor parameters really long for no added value.streetsofboston
04/01/2018, 11:16 PMKodeinAware
to our constructors (and maybe making our constructor's classes KodeinAware
as well). Then you can use by kodein.instance()
or by instance()
to define class' properties.apatrida
04/03/2018, 4:07 AMkodein.direct.instance()
in the middle of everything, including the bindings themselves which now get hit by this. Sure, we can create a new extension function to put this method back on top, .... we'll work around it.salomonbrys
04/03/2018, 9:07 AMDKodein
in the entire application and never have to use direct
, simply create the Kodein object as such: val kodein = Kodein.direct { /* bindings */ }
salomonbrys
04/03/2018, 9:08 AMval myValue = kodein.newInstance { Whatever(instance(), instance()) }
apatrida
04/03/2018, 5:42 PM