public interface ConfigurationStore
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(java.lang.String name)
Gets the value in this ConfigurationStore of a property with a
specific name.
|
java.lang.String[] |
getPropertyNames()
Gets the names of the properties which have values associated in this
ConfigurationStore.
|
boolean |
isSystemProperty(java.lang.String name)
Determines whether a specific name stands for a system property.
|
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.
|
void |
removeProperty(java.lang.String name)
Removes the value association in this ConfigurationStore of the
property with a specific name.
|
void |
setNonSystemProperty(java.lang.String name,
java.lang.Object value)
Sets the value of a non-system property with a specific name to a
specific value in this ConfigurationStore.
|
void |
setSystemProperty(java.lang.String name)
Sets a property with a specific name to be considered a system property
by the ConfigurationStore.
|
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.
|
java.lang.Object getProperty(java.lang.String name)
name
- the name of the property to get the value ofjava.lang.String[] getPropertyNames()
boolean isSystemProperty(java.lang.String name)
name
- the name of a property which is to be determined whether it
is a system propertyvoid 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 failsvoid removeProperty(java.lang.String name)
name
- the name of the property which is to have its value
association in this ConfigurationStore removedvoid setNonSystemProperty(java.lang.String name, java.lang.Object value)
name
- the name of the non-system property to be set to the
specified value in this ConfigurationStorevalue
- the value to be assigned to the non-system property with the
specified name in this ConfigurationStorevoid setSystemProperty(java.lang.String name)
name
- the name of the property to be set as a system property in
this ConfigurationStorevoid 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
file
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.