public class ConfigurationServiceImpl extends Object implements org.jitsi.service.configuration.ConfigurationService
| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD_CMD_LINE_ARGS
Specify names of command line arguments which are password, so that their
values will be masked when 'sun.java.command' is printed to the logs.
|
static String |
PASSWORD_SYS_PROPS
Set this filed value to a regular expression which will be used to select
system properties keys whose values should be masked when printed out to
the logs.
|
| Constructor and Description |
|---|
ConfigurationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
addVetoableChangeListener(org.jitsi.service.configuration.ConfigVetoableChangeListener listener) |
void |
addVetoableChangeListener(String propertyName,
org.jitsi.service.configuration.ConfigVetoableChangeListener listener) |
List<String> |
getAllPropertyNames() |
boolean |
getBoolean(String propertyName,
boolean defaultValue) |
String |
getConfigurationFilename() |
double |
getDouble(String propertyName,
double defaultValue) |
int |
getInt(String propertyName,
int defaultValue) |
long |
getLong(String propertyName,
long defaultValue) |
Object |
getProperty(String propertyName) |
List<String> |
getPropertyNamesByPrefix(String prefix,
boolean exactPrefixMatch) |
List<String> |
getPropertyNamesBySuffix(String suffix) |
String |
getScHomeDirLocation() |
String |
getScHomeDirName() |
String |
getString(String propertyName)
Returns the String value of the specified property (minus all
encompassing whitespaces) and null in case no property value was mapped
against the specified propertyName, or in case the returned property
string had zero length or contained whitespaces only.
|
String |
getString(String propertyName,
String defaultValue) |
void |
logConfigurationProperties(String excludePattern) |
void |
purgeStoredConfiguration()
Deletes the configuration file currently used by this implementation.
|
void |
reloadConfiguration() |
void |
removeProperty(String propertyName) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
removeVetoableChangeListener(org.jitsi.service.configuration.ConfigVetoableChangeListener listener) |
void |
removeVetoableChangeListener(String propertyName,
org.jitsi.service.configuration.ConfigVetoableChangeListener listener) |
void |
setProperties(Map<String,Object> properties) |
void |
setProperty(String propertyName,
Object property) |
void |
setProperty(String propertyName,
Object property,
boolean isSystem) |
void |
storeConfiguration() |
public static String PASSWORD_CMD_LINE_ARGS
public static String PASSWORD_SYS_PROPS
public void setProperty(String propertyName, Object property) throws org.jitsi.service.configuration.ConfigPropertyVetoException
setProperty in interface org.jitsi.service.configuration.ConfigurationServiceorg.jitsi.service.configuration.ConfigPropertyVetoExceptionpublic void setProperty(String propertyName, Object property, boolean isSystem) throws org.jitsi.service.configuration.ConfigPropertyVetoException
setProperty in interface org.jitsi.service.configuration.ConfigurationServiceorg.jitsi.service.configuration.ConfigPropertyVetoExceptionpublic void setProperties(Map<String,Object> properties) throws org.jitsi.service.configuration.ConfigPropertyVetoException
setProperties in interface org.jitsi.service.configuration.ConfigurationServiceorg.jitsi.service.configuration.ConfigPropertyVetoExceptionpublic void removeProperty(String propertyName)
removeProperty in interface org.jitsi.service.configuration.ConfigurationServicepublic Object getProperty(String propertyName)
getProperty in interface org.jitsi.service.configuration.ConfigurationServicepublic List<String> getAllPropertyNames()
getAllPropertyNames in interface org.jitsi.service.configuration.ConfigurationServicepublic List<String> getPropertyNamesByPrefix(String prefix, boolean exactPrefixMatch)
getPropertyNamesByPrefix in interface org.jitsi.service.configuration.ConfigurationServicepublic List<String> getPropertyNamesBySuffix(String suffix)
getPropertyNamesBySuffix in interface org.jitsi.service.configuration.ConfigurationServicepublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void addVetoableChangeListener(org.jitsi.service.configuration.ConfigVetoableChangeListener listener)
addVetoableChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void removeVetoableChangeListener(org.jitsi.service.configuration.ConfigVetoableChangeListener listener)
removeVetoableChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void addVetoableChangeListener(String propertyName, org.jitsi.service.configuration.ConfigVetoableChangeListener listener)
addVetoableChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void removeVetoableChangeListener(String propertyName, org.jitsi.service.configuration.ConfigVetoableChangeListener listener)
removeVetoableChangeListener in interface org.jitsi.service.configuration.ConfigurationServicepublic void reloadConfiguration()
throws IOException
reloadConfiguration in interface org.jitsi.service.configuration.ConfigurationServiceIOExceptionpublic void storeConfiguration()
throws IOException
storeConfiguration in interface org.jitsi.service.configuration.ConfigurationServiceIOExceptionpublic String getConfigurationFilename()
getConfigurationFilename in interface org.jitsi.service.configuration.ConfigurationServicepublic String getScHomeDirLocation()
getScHomeDirLocation in interface org.jitsi.service.configuration.ConfigurationServicepublic String getScHomeDirName()
getScHomeDirName in interface org.jitsi.service.configuration.ConfigurationServicepublic String getString(String propertyName)
getString in interface org.jitsi.service.configuration.ConfigurationServicepropertyName - the name of the property that is being queried.public String getString(String propertyName, String defaultValue)
getString in interface org.jitsi.service.configuration.ConfigurationServicepublic boolean getBoolean(String propertyName, boolean defaultValue)
getBoolean in interface org.jitsi.service.configuration.ConfigurationServicepublic int getInt(String propertyName, int defaultValue)
getInt in interface org.jitsi.service.configuration.ConfigurationServicepublic double getDouble(String propertyName, double defaultValue)
getDouble in interface org.jitsi.service.configuration.ConfigurationServicepublic long getLong(String propertyName, long defaultValue)
getLong in interface org.jitsi.service.configuration.ConfigurationServicepublic void purgeStoredConfiguration()
purgeStoredConfiguration in interface org.jitsi.service.configuration.ConfigurationServicepublic void logConfigurationProperties(String excludePattern)
logConfigurationProperties in interface org.jitsi.service.configuration.ConfigurationServiceCopyright © 2022 jitsi.org. All rights reserved.