public class FilePropertyLoader extends java.lang.Object implements PropertyLoader
| Constructor and Description |
|---|
FilePropertyLoader(java.lang.String path)
Creates a file property loader.
|
| 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.
|
public FilePropertyLoader(java.lang.String path)
path - the properties file path.@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.