public interface PropertyLoader
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 java.lang.String getProperty(java.lang.String key)
key
- the key.null
if the property is not found.java.lang.SecurityException
- if a security manager exists and does not allow the caller to retrieve the given property.java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- the key.defaultValue
- the default value.java.lang.SecurityException
- if a security manager exists and does not allow the caller to retrieve the given property.