public interface Configuration
extends java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of the object.
|
java.util.Iterator |
findPropertyKeys(java.lang.String prefix)
Returns all keys with the given prefix.
|
java.util.Enumeration |
getConfigProperties()
Returns the configuration properties.
|
java.lang.String |
getConfigProperty(java.lang.String key)
Returns the configuration property with the specified key.
|
java.lang.String |
getConfigProperty(java.lang.String key,
java.lang.String defaultValue)
Returns the configuration property with the specified key (or the
specified default value if there is no such property).
|
java.lang.String getConfigProperty(java.lang.String key)
key - the property key.java.lang.String getConfigProperty(java.lang.String key,
java.lang.String defaultValue)
If the property is not defined in this configuration, the code will lookup the property in the parent configuration.
key - the property key.defaultValue - the default value.java.util.Iterator findPropertyKeys(java.lang.String prefix)
prefix - the prefixjava.util.Enumeration getConfigProperties()
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - if cloning is not supported for some reason.