public final class EasyMockProperties
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static EasyMockProperties |
instance |
private static java.lang.String |
PREFIX |
private java.util.Properties |
properties |
| Modifier | Constructor and Description |
|---|---|
private |
EasyMockProperties() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.ClassLoader |
getClassLoader() |
static EasyMockProperties |
getInstance() |
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.
|
private void |
loadEasyMockProperties(java.lang.String propertyFileName) |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Add a value referenced by the provided key.
|
private static final java.lang.String PREFIX
private static volatile EasyMockProperties instance
private final java.util.Properties properties
public static EasyMockProperties getInstance()
private void loadEasyMockProperties(java.lang.String propertyFileName)
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
key - key leading to the propertydefaultValue - the value to be returned if the key isn't foundpublic java.lang.String getProperty(java.lang.String key)
key - key leading to the propertypublic java.lang.String setProperty(java.lang.String key,
java.lang.String value)
key - the key of the new propertyvalue - the value corresponding to key.private java.lang.ClassLoader getClassLoader()