public class SystemPropertyLoader extends java.lang.Object implements PropertyLoader
System.getProperty(String),
System.getProperty(String, String)| Constructor and Description |
|---|
SystemPropertyLoader() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getProperty(java.lang.String key)
Gets the value mapped with the specified key.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Gets the value mapped with the specified key or a default value.
|
@Nullable public java.lang.String getProperty(java.lang.String key)
PropertyLoadergetProperty in interface PropertyLoaderkey - the key.null if the property is not found.public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
PropertyLoadergetProperty in interface PropertyLoaderkey - the key.defaultValue - the default value.