So, I\'m trying to implement compile time DI with something that looks like this:
package modules
class MyModule extends AbstractModule {
def configure() {
Use bindings
instead of load
:
class MyApplicationLoader extends GuiceApplicationLoader {
override protected def builder(context: ApplicationLoader.Context): GuiceApplicationBuilder = {
initialBuilder
.in(context.environment)
.loadConfig(context.initialConfiguration)
.overrides(overrides(context): _*)
.bindings(new MyModule)
}
}