T
- the hashtable extension that descendants are going to use.public abstract class HashtableConfigurationStore<T extends java.util.Hashtable> extends java.lang.Object implements ConfigurationStore
ConfigurationStore
implementation that only uses
a hashtable.Modifier and Type | Field and Description |
---|---|
protected T |
properties
The Hashtable instance which stores the property name-value
associations of this ConfigurationStore instance and which is
effectively adapted by this instance to ConfigurationStore.
|
Modifier | Constructor and Description |
---|---|
protected |
HashtableConfigurationStore(T properties)
Creates an instance of this class using properties as the set
of properties where it will be storing an retrieving properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(java.lang.String name)
Implements
ConfigurationStore.getProperty(String) . |
java.lang.String[] |
getPropertyNames()
Implements
ConfigurationStore.getPropertyNames() . |
boolean |
isSystemProperty(java.lang.String name)
Implements
ConfigurationStore.isSystemProperty(String) . |
void |
removeProperty(java.lang.String name)
Implements
ConfigurationStore.removeProperty(String) . |
void |
setNonSystemProperty(java.lang.String name,
java.lang.Object value)
|
void |
setSystemProperty(java.lang.String name)
Implements
ConfigurationStore.setSystemProperty(String) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reloadConfiguration, storeConfiguration
protected final T extends java.util.Hashtable properties
protected HashtableConfigurationStore(T properties)
properties
- the map that this store will use for storing and
retrieving properties.public java.lang.Object getProperty(java.lang.String name)
ConfigurationStore.getProperty(String)
. If this
ConfigurationStore contains a value associated with the
specified property name, returns it. Otherwise, searches for a system
property with the specified name and returns its value.getProperty
in interface ConfigurationStore
name
- the name of the property to get the value ofConfigurationStore.getProperty(String)
public java.lang.String[] getPropertyNames()
ConfigurationStore.getPropertyNames()
. Gets the names
of the properties which have values associated in this
ConfigurationStore.getPropertyNames
in interface ConfigurationStore
ConfigurationStore.getPropertyNames()
public boolean isSystemProperty(java.lang.String name)
ConfigurationStore.isSystemProperty(String)
. Considers
a property to be system if the system properties contain a value
associated with its name.isSystemProperty
in interface ConfigurationStore
name
- the name of a property which is to be determined whether it
is a system propertyConfigurationStore.isSystemProperty(String)
public void removeProperty(java.lang.String name)
ConfigurationStore.removeProperty(String)
. Removes the
value association in this ConfigurationStore of the property
with a specific name. If the property with the specified name is not
associated with a value in this ConfigurationStore, does
nothing.removeProperty
in interface ConfigurationStore
name
- the name of the property which is to have its value
association in this ConfigurationStore removedConfigurationStore.removeProperty(String)
public void setNonSystemProperty(java.lang.String name, java.lang.Object value)
setNonSystemProperty
in interface ConfigurationStore
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 ConfigurationStoreConfigurationStore.setNonSystemProperty(String, Object)
public void setSystemProperty(java.lang.String name)
ConfigurationStore.setSystemProperty(String)
. Since
system properties are managed through the System class, setting
a property as system in this ConfigurationStore effectively
removes any existing value associated with the specified property name
from this instance.setSystemProperty
in interface ConfigurationStore
name
- the name of the property to be set as a system property in
this ConfigurationStoreConfigurationStore.setSystemProperty(String)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.