public class StandardPropertyAccessor extends CombinedPropertyAccessor implements MutablePropertyAccessor
PropertyAccessor implementation to be used for common cases.CombinedPropertyAccessor.Builder| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_CONFIG_FILE |
static StandardPropertyAccessor |
DEFAULT |
propertyAccessors, props| Constructor and Description |
|---|
StandardPropertyAccessor(String propFileName) |
StandardPropertyAccessor(String propFileName,
String profileName) |
| Modifier and Type | Method and Description |
|---|---|
String |
putProperty(String propName,
String propValue)
Puts the property associated with given property name.
|
String |
putPropertyIfAbsent(String propName,
String propValue)
Puts the property associated with given property name
if and only if it is not exist.
|
String |
removeProperty(String propName)
Removes the property associated with given property name.
|
builder, getProperties, getPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBooleanProperty, getBooleanProperty, getDoubleProperty, getDoubleProperty, getFloatProperty, getFloatProperty, getIntegerProperty, getIntegerProperty, getLongProperty, getLongProperty, getProperties, getProperty, getProperty, hasPropertypublic static final String BASE_CONFIG_FILE
public static final StandardPropertyAccessor DEFAULT
public StandardPropertyAccessor(String propFileName)
public String putProperty(String propName, String propValue)
MutablePropertyAccessorputProperty in interface MutablePropertyAccessorpropName - the name of property to be putpropValue - the value of property to be putnull otherwisepublic String putPropertyIfAbsent(String propName, String propValue)
MutablePropertyAccessorputPropertyIfAbsent in interface MutablePropertyAccessorpropName - the name of property to be putpropValue - the value of property to be putnull if the property is no exist and
put is succeeded, the existing value of the property otherwisepublic String removeProperty(String propName)
MutablePropertyAccessorremoveProperty in interface MutablePropertyAccessorpropName - the name of property to be removednull otherwiseCopyright © 2018. All Rights Reserved.