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
ScaldiSupport
in theGlobal
, then you need to implementapplicationModule
method:Implicit
Injector
would be available in scope so you can use it in different play callbacks likeonStart
andonStop
(ScaldiSupport
also extendsInjectable
, so you can useinject
without any additional setup):ScaldiSupport
provides following pre-defined bindings:Dev
,Prod
orTest
)