public interface PropertyLoader
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String key)
Gets the value mapped with the specified key.
|
String |
getProperty(String key,
String defaultValue)
Gets the value mapped with the specified key or a default value.
|
@Nullable String getProperty(String key)
key
- the key.null
if the property is not found.SecurityException
- if a security manager exists and does not allow the caller to retrieve the given property.String getProperty(String key, String defaultValue)
key
- the key.defaultValue
- the default value.SecurityException
- if a security manager exists and does not allow the caller to retrieve the given property.