|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.common.Configuration
public class Configuration
This class holds a static list of properties accessible from anywhere. It is used to avoid multiplying system-wide properties.
Field Summary | |
---|---|
private static java.util.Properties |
properties
|
Constructor Summary | |
---|---|
Configuration()
|
Method Summary | |
---|---|
static boolean |
getBoolean(java.lang.String key)
Determines the boolean value of the property with the specified name. |
static java.lang.Integer |
getInteger(java.lang.String key)
Determines the integer value of the property with the specified name. |
static java.lang.Integer |
getInteger(java.lang.String key,
int value)
Determines the integer value of the property with the specified name. |
static java.lang.Long |
getLong(java.lang.String key)
Determines the integer value of the property with the specified name. |
static java.lang.Long |
getLong(java.lang.String key,
long value)
Determines the long value of the property with the specified name. |
static java.lang.String |
getProperty(java.lang.String key)
Searches for the property with the specified key in the property list. |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String value)
Searches for the property with the specified key in the property list. |
static void |
putProperty(java.lang.String name,
java.lang.String value)
Adds a new property to the configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.Properties properties
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public static java.lang.String getProperty(java.lang.String key)
key
- the hashtable key.
public static java.lang.String getProperty(java.lang.String key, java.lang.String value)
key
- the hashtable key.value
- a default value.
public static java.lang.Integer getInteger(java.lang.String key)
key
- property name.
public static java.lang.Integer getInteger(java.lang.String key, int value)
key
- property name.value
- a default value.
public static java.lang.Long getLong(java.lang.String key)
key
- property name.
public static java.lang.Long getLong(java.lang.String key, long value)
key
- property name.value
- a default value.
public static boolean getBoolean(java.lang.String key)
key
- property name.
public static void putProperty(java.lang.String name, java.lang.String value)
name
- property name.value
- property value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |