/** * Create a new context with a different environment. * * @param environment the environment this context should use * @return a context using the specified environment */ public Context withEnvironment(Environment environment) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( environment.asScala(), underlying.initialConfiguration(), new DefaultApplicationLifecycle(), underlying.devContext()); return new Context(scalaContext); }
/** * Create a new context with a different environment. * * @param environment the environment this context should use * @return a context using the specified environment */ public Context withEnvironment(Environment environment) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( environment.asScala(), underlying.initialConfiguration(), new DefaultApplicationLifecycle(), underlying.devContext()); return new Context(scalaContext); }
/** * Create a new context with a different environment. * * @param environment the environment this context should use * @return a context using the specified environment */ public Context withEnvironment(Environment environment) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( environment.asScala(), underlying.initialConfiguration(), new DefaultApplicationLifecycle(), underlying.devContext()); return new Context(scalaContext); }
/** * Create a new context with a different configuration. * * @param initialConfiguration the configuration to use in the created context * @return the created context */ public Context withConfig(Config initialConfiguration) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( underlying.environment(), new play.api.Configuration(initialConfiguration), new DefaultApplicationLifecycle(), underlying.devContext()); return new Context(scalaContext); } }
/** * Create a new context with a different configuration. * * @param initialConfiguration the configuration to use in the created context * @return the created context */ public Context withConfig(Config initialConfiguration) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( underlying.environment(), new play.api.Configuration(initialConfiguration), new DefaultApplicationLifecycle(), underlying.devContext()); return new Context(scalaContext); } }
/** * The context for loading an application. * * @param environment the application environment * @param initialSettings the initial settings. These settings are merged with the settings from the loaded * configuration files, and together form the initialConfiguration provided by the context. It * is intended for use in dev mode, to allow the build system to pass additional configuration * into the application. */ public Context(Environment environment, Map<String, Object> initialSettings) { this.underlying = new play.api.ApplicationLoader.Context( environment.asScala(), play.api.Configuration.load(environment.asScala(), play.libs.Scala.asScala(initialSettings)), new DefaultApplicationLifecycle(), scala.Option.empty()); }
/** * Create a new context with a different configuration. * * @param initialConfiguration the configuration to use in the created context * @return the created context */ public Context withConfig(Config initialConfiguration) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( underlying.environment(), new play.api.Configuration(initialConfiguration), new DefaultApplicationLifecycle(), underlying.devContext()); return new Context(scalaContext); } }
/** * The context for loading an application. * * @param environment the application environment * @param initialSettings the initial settings. These settings are merged with the settings from the loaded * configuration files, and together form the initialConfiguration provided by the context. It * is intended for use in dev mode, to allow the build system to pass additional configuration * into the application. */ public Context(Environment environment, Map<String, Object> initialSettings) { this.underlying = new play.api.ApplicationLoader.Context( environment.asScala(), play.api.Configuration.load(environment.asScala(), play.libs.Scala.asScala(initialSettings)), new DefaultApplicationLifecycle(), scala.Option.empty()); }
/** * The context for loading an application. * * @param environment the application environment * @param initialSettings the initial settings. These settings are merged with the settings from the loaded * configuration files, and together form the initialConfiguration provided by the context. It * is intended for use in dev mode, to allow the build system to pass additional configuration * into the application. */ public Context(Environment environment, Map<String, Object> initialSettings) { this.underlying = new play.api.ApplicationLoader.Context( environment.asScala(), play.api.Configuration.load(environment.asScala(), play.libs.Scala.asScala(initialSettings)), new DefaultApplicationLifecycle(), scala.Option.empty()); }
/** * Create an application loading context. * * Locates and loads the necessary configuration files for the application. * * @param environment The application environment. * @param initialSettings The initial settings. These settings are merged with the settings from the loaded * configuration files, and together form the initialConfiguration provided by the context. It * is intended for use in dev mode, to allow the build system to pass additional configuration * into the application. * @return the created context */ static Context create(Environment environment, Map<String, Object> initialSettings) { play.api.ApplicationLoader.Context scalaContext = play.api.ApplicationLoader.Context$.MODULE$.create( environment.asScala(), Scala.asScala(initialSettings), new DefaultApplicationLifecycle(), Scala.<play.api.ApplicationLoader.DevContext>None()); return new Context(scalaContext); }
/** * Create an application loading context. * * Locates and loads the necessary configuration files for the application. * * @param environment The application environment. * @param initialSettings The initial settings. These settings are merged with the settings from the loaded * configuration files, and together form the initialConfiguration provided by the context. It * is intended for use in dev mode, to allow the build system to pass additional configuration * into the application. * @return the created context */ static Context create(Environment environment, Map<String, Object> initialSettings) { play.api.ApplicationLoader.Context scalaContext = play.api.ApplicationLoader.Context$.MODULE$.create( environment.asScala(), Scala.asScala(initialSettings), new DefaultApplicationLifecycle(), Scala.<play.api.ApplicationLoader.DevContext>None()); return new Context(scalaContext); }
/** * Create an application loading context. * * Locates and loads the necessary configuration files for the application. * * @param environment The application environment. * @param initialSettings The initial settings. These settings are merged with the settings from the loaded * configuration files, and together form the initialConfiguration provided by the context. It * is intended for use in dev mode, to allow the build system to pass additional configuration * into the application. * @return the created context */ static Context create(Environment environment, Map<String, Object> initialSettings) { play.api.ApplicationLoader.Context scalaContext = play.api.ApplicationLoader.Context$.MODULE$.create( environment.asScala(), Scala.asScala(initialSettings), new DefaultApplicationLifecycle(), Scala.<play.api.ApplicationLoader.DevContext>None()); return new Context(scalaContext); }