public class SharedProperties extends Object implements PropertyLoader
Constructor and Description |
---|
SharedProperties()
Creates a new shared properties implementation.
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String key)
Searches for the property with the specified key.
|
String |
getProperty(String key,
String defaultValue)
Searches for the property with the specified key.
|
String |
setProperty(String key,
String value)
Sets the property indicated by the specified key.
|
public SharedProperties()
public String getProperty(String key)
PropertyLoader
getProperty
in interface PropertyLoader
key
- the property key.null
if the property is not found.public String getProperty(String key, String defaultValue)
PropertyLoader
getProperty
in interface PropertyLoader
key
- the property key.defaultValue
- a default value.public String setProperty(String key, String value)
key
- the key to be placed into this property list.value
- the value corresponding to the key.