/** * 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 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); } }
/** * Get the environment from the context. */ public Environment environment() { return new Environment(underlying.environment()); }
/** * Get the environment from the context. * * @return the environment */ public Environment environment() { return new Environment(underlying.environment()); }
/** * Get the environment from the context. * * @return the environment */ public Environment environment() { return new Environment(underlying.environment()); }
/** * Get the environment from the context. * * @return the environment */ public Environment environment() { return new Environment(underlying.environment()); }
/** * Create a new context with a different configuration. */ public Context withConfiguration(Configuration initialConfiguration) { play.api.ApplicationLoader.Context scalaContext = new play.api.ApplicationLoader.Context( underlying.environment(), underlying.sourceMapper(), underlying.webCommands(), initialConfiguration.getWrappedConfiguration()); return new Context(scalaContext); }