/** * 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); } }
/** * 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 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); }
/** * If an application is loaded in dev mode then this additional context is available. * * @return optional with the value if the application is running in dev mode or empty otherwise. */ public Optional<play.api.ApplicationLoader.DevContext> devContext() { return OptionConverters.toJava(underlying.devContext()); }
/** * If an application is loaded in dev mode then this additional context is available. * * @return optional with the value if the application is running in dev mode or empty otherwise. */ public Optional<play.api.ApplicationLoader.DevContext> devContext() { return OptionConverters.toJava(underlying.devContext()); }
/** * If an application is loaded in dev mode then this additional context is available. * * @return optional with the value if the application is running in dev mode or empty otherwise. */ public Optional<play.api.ApplicationLoader.DevContext> devContext() { return OptionConverters.toJava(underlying.devContext()); }