public abstract class AbstractPropertyConfig extends Object implements PropertyConfig
AbstractPropertyConfig provides a base implementation of
PropertyConfig.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
| Constructor and Description |
|---|
AbstractPropertyConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkImmutable()
Verifies if this property config is immutable.
|
protected void |
checkStringInput(String s,
boolean allowNull)
Verifies that a string is not null or empty.
|
abstract String |
getPropertiesDomain()
This returns the properties domain for this property config.
|
abstract boolean |
hasEnvironmentProperty(String name)
This returns whether the supplied property exists.
|
void |
makeImmutable()
Make this property config immutable.
|
void |
setEnvironmentProperties(Hashtable<String,String> properties)
|
void |
setEnvironmentProperties(Properties properties)
|
abstract void |
setEnvironmentProperties(String name,
String value)
This adds environment properties to this object.
|
public void makeImmutable()
public void checkImmutable()
IllegalStateException - if this property config is immutablepublic abstract String getPropertiesDomain()
getPropertiesDomain in interface PropertyConfigString properties domainpublic abstract void setEnvironmentProperties(String name, String value)
setEnvironmentProperties in interface PropertyConfigname - String property namevalue - String property valuepublic void setEnvironmentProperties(Properties properties)
setEnvironmentProperties in interface PropertyConfigproperties - Propertiespublic void setEnvironmentProperties(Hashtable<String,String> properties)
setEnvironmentProperties in interface PropertyConfigproperties - Hashtable of environment propertiespublic abstract boolean hasEnvironmentProperty(String name)
hasEnvironmentProperty in interface PropertyConfigname - String to checkboolean whether the supplied property existsprotected void checkStringInput(String s, boolean allowNull)
s - to verifyallowNull - whether null strings are validIllegalArgumentException - if the string is null or emptyCopyright © 2014. All rights reserved.