@SuppressWarnings("unchecked") private static ServerConfig createServerConfig(Optional<Integer> port, Optional<Integer> sslPort) { return ServerConfig.apply(TestServer.class.getClassLoader(), new File("."), (Option) OptionConverters.toScala(port), (Option) OptionConverters.toScala(sslPort), "0.0.0.0", Mode.TEST.asScala(), System.getProperties()); }
@SuppressWarnings("unchecked") private static ServerConfig createServerConfig(Optional<Integer> port, Optional<Integer> sslPort) { return ServerConfig.apply(TestServer.class.getClassLoader(), new File("."), (Option) OptionConverters.toScala(port), (Option) OptionConverters.toScala(sslPort), "0.0.0.0", Mode.TEST.asScala(), System.getProperties()); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, mode.asScala())); }
@Override public void init(File rootPath, Mode mode) { delegate.init(rootPath, mode.asScala()); }
@Override public void init(File rootPath, Mode mode) { delegate.init(rootPath, mode.asScala()); }
@Override public void init(File rootPath, Mode mode) { delegate.init(rootPath, mode.asScala()); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, mode.asScala())); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, mode.asScala())); }
/** * Set the environment mode. * * @param mode the mode to configure * @return a copy of this build configured with this mode */ public final Self in(Mode mode) { return newBuilder(delegate.in(mode.asScala())); }
/** * Set the environment mode. * * @param mode the mode to configure * @return a copy of this build configured with this mode */ public final Self in(Mode mode) { return newBuilder(delegate.in(mode.asScala())); }