edu.vt.middleware.ldap.props
public abstract class AbstractPropertyConfig extends java.lang.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(java.lang.String s,
boolean allowNull)
Verifies that a string is not null or empty.
|
abstract java.lang.String |
getPropertiesDomain()
This returns the properties domain for this property config.
|
abstract boolean |
hasEnvironmentProperty(java.lang.String name)
This returns whether the supplied property exists.
|
void |
makeImmutable()
Make this property config immutable.
|
void |
setEnvironmentProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
|
void |
setEnvironmentProperties(java.util.Properties properties)
|
abstract void |
setEnvironmentProperties(java.lang.String name,
java.lang.String value)
This adds environment properties to this object.
|
public void makeImmutable()
public void checkImmutable()
java.lang.IllegalStateException
- if this property config is immutablepublic abstract java.lang.String getPropertiesDomain()
getPropertiesDomain
in interface PropertyConfig
String
properties domainpublic abstract void setEnvironmentProperties(java.lang.String name, java.lang.String value)
setEnvironmentProperties
in interface PropertyConfig
name
- String
property namevalue
- String
property valuepublic void setEnvironmentProperties(java.util.Properties properties)
setEnvironmentProperties
in interface PropertyConfig
properties
- Properties
public void setEnvironmentProperties(java.util.Hashtable<java.lang.String,java.lang.String> properties)
setEnvironmentProperties
in interface PropertyConfig
properties
- Hashtable
of environment propertiespublic abstract boolean hasEnvironmentProperty(java.lang.String name)
hasEnvironmentProperty
in interface PropertyConfig
name
- String
to checkboolean
whether the supplied property existsprotected void checkStringInput(java.lang.String s, boolean allowNull)
s
- to verifyallowNull
- whether null strings are validjava.lang.IllegalArgumentException
- if the string is null or emptyCopyright © 2014. All Rights Reserved.