Albert
bind<Action>(tag = "ActionImpl2") with singleton { ActionImpl2() } bind<Action>(tag = "ActionImpl2") with singleton { ActionImpl2() } bind<Action>() with singleton { CompositeAction( allInstances<Action>() ) }
allInstances<Action>()
Action
tag
salomonbrys
bind() from setBinding<Action>() bind<Action>().inSet() with singleton { ActionImpl1() } bind<Action>().inSet() with singleton { ActionImpl2() } bind<Action>() with singleton { CompositeAction( instance<Set<Action>>() ) }
A modern programming language that makes developers happier.