forked from benlings/scala-guice
- Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Suppose you've a trait that you will implement in child classes -
trait AppMessage {} Given this injections
val mapBinder = ScalaMapBinder.newMapBinder[String, AppMessage](binder) mapBinder.addBinding("A").toInstance(new AppMessageSampleA) mapBinder.addBinding("B").toInstance(new AppMessageSampleB) and calling them with val map = injector.instance[im.Map[String, AppMessage]] throws not found exception.
Need to support traits
Metadata
Metadata
Assignees
Labels
No labels