Adds Scaldi support to the Global
.
Provides some Play-specific conditions that can be used in the mappings:
Provides some Play-specific conditions that can be used in the mappings:
bind [MessageService] when (inDevMode or inTestMode) to new SimpleMessageService bind [MessageService] when inProdMode to new OfficialMessageService
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
)