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