/** * Create an application that wraps a Scala application. * * @param application the application to wrap * @param config the new application's configuration * @param injector the new application's injector * * @deprecated Use {@link #DefaultApplication(play.api.Application, Config, Injector, Environment)} instead. */ @Deprecated public DefaultApplication(play.api.Application application, Config config, Injector injector) { this(application, config, injector, new Environment(application.environment())); }
/** * Create an application that wraps a Scala application. * * @param application the application to wrap * @param config the new application's configuration * @param injector the new application's injector * * @deprecated Use {@link #DefaultApplication(play.api.Application, Config, Injector, Environment)} instead. */ @Deprecated public DefaultApplication(play.api.Application application, Config config, Injector injector) { this(application, config, injector, new Environment(application.environment())); }
/** * Create an application that wraps a Scala application. * * @param application the application to wrap * @param config the new application's configuration * @param injector the new application's injector * * @deprecated Use {@link #DefaultApplication(play.api.Application, Config, Injector, Environment)} instead. */ @Deprecated public DefaultApplication(play.api.Application application, Config config, Injector injector) { this(application, config, injector, new Environment(application.environment())); }
@Override public Environment environment() { return scalaRef.environment(); }