If you clone it an run ./gradlew run you'll see that its complaining about my use of @Names.named when specifying parameters to inject, specifically right here:
class DefaultListener @Inject() (@Names.named("username") val username : String) extends ActionListener with InputTypes {
override def onAction(name: String, isPressed: Boolean, tpf: Float): Unit = {
println(s"I am responding to something important for ${username}!")
}
}
The specific exception states:
"type named is not a member of object com.google.inject.name.Names"
However I believe I've followed your documentation precisely. Can anyone spot where I'm going awry? Thanks in advance!
I have the following repo on GitHub which uses this library for DI of a very simple Scala app.
If you clone it an run
./gradlew run
you'll see that its complaining about my use of@Names.named
when specifying parameters to inject, specifically right here:The specific exception states:
However I believe I've followed your documentation precisely. Can anyone spot where I'm going awry? Thanks in advance!