Created by dsarosi on 30/6/2017.
Injector for the Play applications that creates controller bindings on the fly.
A builder for creating Applications using Scaldi.
Default empty builder for creating Scaldi-backed Injectors.
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
Injector for the Play applications that creates controller bindings on the fly. The preferred way to use it is by adding it to the module composition at the very end, so that it would be possible to override default instantiation strategy in user-defined modules.
Here is an example:
object Global extends GlobalSettings with ScaldiSupport { def applicationModule = new UserModule :: new DbModule :: new ControllerInjector }