Albert
08/23/2019, 8:20 AMbind<Action>(tag = "ActionImpl2") with singleton { ActionImpl2() }
bind<Action>(tag = "ActionImpl2") with singleton { ActionImpl2() }
bind<Action>() with singleton {
CompositeAction(
allInstances<Action>()
)
}
Problem here is that allInstances<Action>() is causing recursive error, probably because this is lazy loaded. Is it possible to invoke allInstances<Action>() in such a way that it will exclude it own bind and only loads the Action instances with a tag? Preferably I don't want to eager load.salomonbrys
08/23/2019, 8:38 AMsalomonbrys
08/23/2019, 8:40 AMsalomonbrys
08/23/2019, 8:43 AMbind() from setBinding<Action>()
bind<Action>().inSet() with singleton { ActionImpl1() }
bind<Action>().inSet() with singleton { ActionImpl2() }
bind<Action>() with singleton {
CompositeAction(
instance<Set<Action>>()
)
}Albert
08/23/2019, 9:22 AMsalomonbrys
08/23/2019, 9:22 AM