public interface ConfigurationStore
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String name)
Gets the value in this ConfigurationStore of a property with a
specific name.
|
String[] |
getPropertyNames()
Gets the names of the properties which have values associated in this
ConfigurationStore.
|
boolean |
isSystemProperty(String name)
Determines whether a specific name stands for a system property.
|
void |
reloadConfiguration(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(String name)
Removes the value association in this ConfigurationStore of the
property with a specific name.
|
void |
setNonSystemProperty(String name,
Object value)
Sets the value of a non-system property with a specific name to a
specific value in this ConfigurationStore.
|
void |
setSystemProperty(String name)
Sets a property with a specific name to be considered a system property
by the ConfigurationStore.
|
void |
storeConfiguration(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.
|
Object getProperty(String name)
name - the name of the property to get the value ofString[] getPropertyNames()
boolean isSystemProperty(String name)
name - the name of a property which is to be determined whether it
is a system propertyvoid reloadConfiguration(File file) throws IOException, XMLException
file - the File to be read and to deserialize new property
name-value associations from into this instanceIOException - if there is an input error while reading from the
specified fileXMLException - if parsing the contents of the specified
file failsvoid removeProperty(String name)
name - the name of the property which is to have its value
association in this ConfigurationStore removedvoid setNonSystemProperty(String name, 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(String name)
name - the name of the property to be set as a system property in
this ConfigurationStorevoid storeConfiguration(OutputStream out) throws IOException
out - the OutputStream to receive the serialized form of
the property name-value associations currently present in this
ConfigurationStoreIOException - if there is an output error while storing the
properties managed by this ConfigurationStore into the specified
fileCopyright © 2022 jitsi.org. All rights reserved.