As this involves a little bit of reflection, calls should be cached.
As this involves a little bit of reflection, calls should be cached.
The current injector when the application is running.
The current injector when the application is running.
This should only be used directly in legacy code and tests.
Adds Scaldi support to the
Global.If you mix-in
ScaldiSupportin theGlobal, then you need to implementapplicationModulemethod:Implicit
Injectorwould be available in scope so you can use it in different play callbacks likeonStartandonStop(ScaldiSupportalso extendsInjectable, so you can useinjectwithout any additional setup):override def onStart(app: Application) = { super.onStart(app) val service = inject [Service] ... }ScaldiSupportprovides following pre-defined bindings:Dev,ProdorTest)