@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()); }
/** * Returns `true` if the application is `DEV` mode. */ public boolean isDev() { return mode().equals(Mode.DEV); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, play.api.Mode.apply(mode.ordinal()))); }
/** * Returns `true` if the application is `TEST` mode. * * @return `true` if the application is `TEST` mode. */ public boolean isTest() { return mode().equals(Mode.TEST); }
@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()); }
/** * Returns `true` if the application is `PROD` mode. * * @return `true` if the application is `PROD` mode. */ public boolean isProd() { return mode().equals(Mode.PROD); }
/** * Set the environment mode. */ public final Self in(Mode mode) { return newBuilder(delegate.in(play.api.Mode.apply(mode.ordinal()))); }
@Override public void init(File rootPath, Mode mode) { delegate.init(rootPath, mode.asScala()); }
/** * Returns `true` if the application is `PROD` mode. * * @return `true` if the application is `PROD` mode. */ public boolean isProd() { return mode().equals(Mode.PROD); }
@Override public void init(File rootPath, Mode mode) { delegate.init(rootPath, mode.asScala()); }
/** * Returns `true` if the application is `TEST` mode. */ public boolean isTest() { return mode().equals(Mode.TEST); }
@Override public void init(File rootPath, Mode mode) { delegate.init(rootPath, mode.asScala()); }
/** * Returns `true` if the application is `PROD` mode. * * @return `true` if the application is `PROD` mode. */ public boolean isProd() { return mode().equals(Mode.PROD); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, mode.asScala())); }
/** * Returns `true` if the application is `PROD` mode. */ public boolean isProd() { return mode().equals(Mode.PROD); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, mode.asScala())); }
/** * Returns `true` if the application is `DEV` mode. * * @return `true` if the application is `DEV` mode. */ public boolean isDev() { return mode().equals(Mode.DEV); }
public Environment(File rootPath, ClassLoader classLoader, Mode mode) { this(new play.api.Environment(rootPath, classLoader, mode.asScala())); }
/** * Returns `true` if the application is `DEV` mode. * * @return `true` if the application is `DEV` mode. */ public boolean isDev() { return mode().equals(Mode.DEV); }