|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationStore
Abstracts the runtime storage, the serialization and deserialization of the configuration properties and their associated values of ConfigurationServiceImpl and the format of the configuration file. Thus ConfigurationServiceImpl can operate regardless of these specifics and takes care of asking the VetoableChangeListeners, converting the property values to the requested types and notifying the PropertyChangeListeners.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Object getProperty(String name)
name - the name of the property to get the value of
String[] getPropertyNames()
boolean isSystemProperty(String name)
name - the name of a property which is to be determined whether it
is a system property
void reloadConfiguration(File file)
throws IOException,
XMLException
file - the File to be read and to deserialize new property
name-value associations from into this instance
IOException - if there is an input error while reading from the
specified file
XMLException - 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 removed
void 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 ConfigurationStore
void storeConfiguration(OutputStream out)
throws IOException
out - the OutputStream to receive the serialized form of
the property name-value associations currently present in this
ConfigurationStore
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. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||