/** * 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); }
/** * Get the configuration from the context. This configuration is not necessarily the same * configuration used by the application, as the ApplicationLoader may, through it's own * mechanisms, modify it or completely ignore it. * * @return the initial configuration */ public Config initialConfig() { return underlying.initialConfiguration().underlying(); }
/** * Create a new context with a different environment. */ public Context withEnvironment(Environment environment) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( environment.underlying(), underlying.sourceMapper(), underlying.webCommands(), underlying.initialConfiguration()); return new Context(scalaContext); }
/** * Get the configuration from the context. This configuration is not necessarily the same * configuration used by the application, as the ApplicationLoader may, through it's own * mechanisms, modify it or completely ignore it. * * @return the initial configuration */ public Config initialConfig() { return underlying.initialConfiguration().underlying(); }
/** * Get the configuration from the context. This configuration is not necessarily the same * configuration used by the application, as the ApplicationLoader may, through it's own * mechanisms, modify it or completely ignore it. * * @return the initial configuration */ public Config initialConfig() { return underlying.initialConfiguration().underlying(); }
/** * Get the configuration from the context. This configuration is not necessarily the same * configuration used by the application, as the ApplicationLoader may, through it's own * mechanisms, modify it or completely ignore it. */ public Configuration initialConfiguration() { return new Configuration(underlying.initialConfiguration()); }