public interface EnvironmentDetector
| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_DEVELOPMENT |
static String |
ENV_PRODUCTION |
static String |
ENV_TESTING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
is(String name)
Check if the provided environment is currently using
|
default boolean |
isDevelopment()
Whether or not current environment is development
|
default boolean |
isProduction()
Whether or not current environment is production
|
default boolean |
isTesting()
Whether or not current environment is testing
|
static final String ENV_PRODUCTION
static final String ENV_DEVELOPMENT
static final String ENV_TESTING
boolean is(String name)
name - a string represents for environment's namedefault boolean isProduction()
default boolean isDevelopment()
default boolean isTesting()
Copyright © 2018. All rights reserved.