playframeworkDependency Injection - Scala


Syntax

  • class MyClassUsingAnother @Inject() (myOtherClassInjected: MyOtherClass) { (...) }
  • @Singleton class MyClassThatShouldBeASingleton (...)