public abstract class DatabaseConfigurationStore extends HashtableConfigurationStore<java.util.Hashtable>
properties
Modifier | Constructor and Description |
---|---|
protected |
DatabaseConfigurationStore()
Initializes a new DatabaseConfigurationStore instance.
|
protected |
DatabaseConfigurationStore(java.util.Hashtable properties)
Initializes a new DatabaseConfigurationStore instance with a
specific runtime Hashtable storage.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
reloadConfiguration()
Removes all property name-value associations currently present in this
ConfigurationStore instance and deserializes new property
name-value associations from its underlying database (storage).
|
void |
reloadConfiguration(java.io.File file)
Removes all property name-value associations currently present in this
ConfigurationStore and deserializes new property name-value
associations from a specific File which presumably is in the
format represented by this instance.
|
protected void |
storeConfiguration()
Stores/serializes the property name-value associations currently present
in this ConfigurationStore instance into its underlying database
(storage).
|
void |
storeConfiguration(java.io.OutputStream out)
Stores/serializes the property name-value associations currently present
in this ConfigurationStore into a specific OutputStream
in the format represented by this instance.
|
getProperty, getPropertyNames, isSystemProperty, removeProperty, setNonSystemProperty, setSystemProperty
protected DatabaseConfigurationStore()
protected DatabaseConfigurationStore(java.util.Hashtable properties)
properties
- the Hashtable which is to become the runtime
storage of the new instanceprotected abstract void reloadConfiguration() throws java.io.IOException
java.io.IOException
- if there is an input error while reading from the
underlying database (storage)public void reloadConfiguration(java.io.File file) throws java.io.IOException, XMLException
file
- the File to be read and to deserialize new property
name-value associations from into this instancejava.io.IOException
- if there is an input error while reading from the
specified fileXMLException
- if parsing the contents of the specified
file failsConfigurationStore.reloadConfiguration(File)
protected void storeConfiguration() throws java.io.IOException
java.io.IOException
- if there is an output error while storing the
properties managed by this ConfigurationStore instance into its
underlying database (storage)public void storeConfiguration(java.io.OutputStream out) throws java.io.IOException
out
- the OutputStream to receive the serialized form of
the property name-value associations currently present in this
ConfigurationStorejava.io.IOException
- if there is an output error while storing the
properties managed by this ConfigurationStore into the specified
fileConfigurationStore.storeConfiguration(OutputStream)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.