Create an injector for runtime DI.
Create an injector for runtime DI.
This can be used by runtime DI providers to provide an injector during testing. The injector should contain all the components specified by the modules, and should also bind itself.
If this method is not implemented, FakeApplication will use a NewInstanceInjector instead.
Attempt to convert a module of unknown type to a Guice module
Attempt to convert a module of unknown type to a Guice module
Load an application given the context.
Load an application given the context.
Load the modules from the environment and configuration.
Load the modules from the environment and configuration.
By default this uses Modules.locate
to find modules in play.modules
files, and adds additionalModules
.
Override this method if you want to disable the autoloading functionality and manually install all Guice modules, including those provided by Play and third-party libraries.
a Seq[com.google.inject.Module]
, containing Guice modules to be loaded
An ApplicationLoader that uses guice to bootstrap the application.