public final class TorpedoProperties
extends java.util.Properties
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object |
lock_
lock object to guarantee the synchronized access
to the
sysconf_ member. |
private static TorpedoProperties |
sysconf_
static member to implement singleton pattern.
|
| Constructor and Description |
|---|
TorpedoProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getInt(java.lang.String name)
Get integer representation of the property value associated with the given name
|
java.lang.String |
getString(java.lang.String name)
Get String representation of the property value assiciated with the given name
|
static TorpedoProperties |
loadConfiguration()
Load configuration in torpedo.properties file and convert it into
TorpedoProperties object and return it.
|
boolean |
propertyExists(java.lang.String name)
Check if there is a property value associated with the given name
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesprivate static TorpedoProperties sysconf_
private static java.lang.Object lock_
sysconf_ member.public boolean propertyExists(java.lang.String name)
name - name of the property valuepublic int getInt(java.lang.String name)
name - name of the property valuepublic java.lang.String getString(java.lang.String name)
name - name of the property valuepublic static TorpedoProperties loadConfiguration()