I have a singleton that implements two interfaces,...
# kodein
r
I have a singleton that implements two interfaces, one of which needs to be bound to a
Set
. Is this a good pattern, or is there a cleaner approach?
Copy code
singleton { new(::Foo) }.let {
  bind<IFace1>().inSet() with it
  bind<IFace2>() with it
}
Looks pretty clean to me but want to make sure I'm not missing something.
i
seems fine to me
👍 1