T - the hashtable extension that descendants are going to use.public abstract class HashtableConfigurationStore<T extends Hashtable> extends 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 |
|---|---|
Object |
getProperty(String name)
Implements
ConfigurationStore.getProperty(String). |
String[] |
getPropertyNames()
Implements
ConfigurationStore.getPropertyNames(). |
boolean |
isSystemProperty(String name)
Implements
ConfigurationStore.isSystemProperty(String). |
void |
removeProperty(String name)
Implements
ConfigurationStore.removeProperty(String). |
void |
setNonSystemProperty(String name,
Object value)
|
void |
setSystemProperty(String name)
Implements
ConfigurationStore.setSystemProperty(String). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreloadConfiguration, storeConfigurationprotected HashtableConfigurationStore(T properties)
properties - the map that this store will use for storing and
retrieving properties.public Object getProperty(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 ConfigurationStorename - the name of the property to get the value ofConfigurationStore.getProperty(String)public String[] getPropertyNames()
ConfigurationStore.getPropertyNames(). Gets the names
of the properties which have values associated in this
ConfigurationStore.getPropertyNames in interface ConfigurationStoreConfigurationStore.getPropertyNames()public boolean isSystemProperty(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 ConfigurationStorename - the name of a property which is to be determined whether it
is a system propertyConfigurationStore.isSystemProperty(String)public void removeProperty(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 ConfigurationStorename - the name of the property which is to have its value
association in this ConfigurationStore removedConfigurationStore.removeProperty(String)public void setNonSystemProperty(String name, Object value)
setNonSystemProperty in interface ConfigurationStorename - 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(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 ConfigurationStorename - the name of the property to be set as a system property in
this ConfigurationStoreConfigurationStore.setSystemProperty(String)Copyright © 2021 jitsi.org. All rights reserved.