class LauncherConfigurationParameters extends java.lang.Object implements ConfigurationParameters
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LauncherConfigurationParameters.Builder |
private static interface |
LauncherConfigurationParameters.ParameterProvider |
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
logger |
private java.util.List<LauncherConfigurationParameters.ParameterProvider> |
providers |
CONFIG_FILE_NAME| Modifier | Constructor and Description |
|---|---|
private |
LauncherConfigurationParameters(java.util.List<LauncherConfigurationParameters.ParameterProvider> providers) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static LauncherConfigurationParameters.Builder |
builder() |
java.util.Optional<java.lang.String> |
get(java.lang.String key)
Get the configuration parameter stored under the specified
key. |
java.util.Optional<java.lang.Boolean> |
getBoolean(java.lang.String key)
Get the boolean configuration parameter stored under the specified
key. |
private java.lang.String |
getProperty(java.lang.String key) |
java.util.Set<java.lang.String> |
keySet()
Get the keys of all configuration parameters stored in this
ConfigurationParameters. |
private static java.util.Properties |
loadClasspathResource(java.lang.String configFileName) |
int |
size()
Get the number of configuration parameters stored directly in this
ConfigurationParameters. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetprivate static final Logger logger
private final java.util.List<LauncherConfigurationParameters.ParameterProvider> providers
private LauncherConfigurationParameters(java.util.List<LauncherConfigurationParameters.ParameterProvider> providers)
static LauncherConfigurationParameters.Builder builder()
public java.util.Optional<java.lang.String> get(java.lang.String key)
ConfigurationParameterskey.
If no such key is present in this ConfigurationParameters,
an attempt will be made to look up the value as a JVM system property.
If no such system property exists, an attempt will be made to look up
the value in the JUnit Platform properties
file.
get in interface ConfigurationParameterskey - the key to look up; never null or blankOptional containing the value; never null
but potentially emptyConfigurationParameters.getBoolean(String),
System.getProperty(String),
ConfigurationParameters.CONFIG_FILE_NAMEpublic java.util.Optional<java.lang.Boolean> getBoolean(java.lang.String key)
ConfigurationParameterskey.
If no such key is present in this ConfigurationParameters,
an attempt will be made to look up the value as a JVM system property.
If no such system property exists, an attempt will be made to look up
the value in the JUnit Platform properties
file.
getBoolean in interface ConfigurationParameterskey - the key to look up; never null or blankOptional containing the value; never null
but potentially emptyConfigurationParameters.get(String),
Boolean.parseBoolean(String),
System.getProperty(String),
ConfigurationParameters.CONFIG_FILE_NAMEpublic int size()
ConfigurationParametersConfigurationParameters.size in interface ConfigurationParameterspublic java.util.Set<java.lang.String> keySet()
ConfigurationParametersConfigurationParameters.keySet in interface ConfigurationParametersConfigurationParametersprivate java.lang.String getProperty(java.lang.String key)
public java.lang.String toString()
toString in class java.lang.Objectprivate static java.util.Properties loadClasspathResource(java.lang.String configFileName)