|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.mcgill.cs.postina.util.properties.PropertyManager
public class PropertyManager
The PropertyManager allows to read a properties defined in the
property files. It reads two property files: a global file
postina.properties and a local, machine-specific one. The
machine-specific property file's name must be of form
postina. where
is the fully qualified hostname in lowercases of the machine for which these
properties should be applied. Example:
postina.rogue.cs.mcgill.ca.properties
| Field Summary | |
|---|---|
private static java.util.Properties |
generalProperties
The field generalProperties contains the properties
defined in the global property file. |
private static java.util.Properties |
localProperties
The field localProperties contains the properties defined
in the local, machine-specific property file. |
private static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
PropertyManager()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getProperty(java.lang.String key)
This method allows to get a property by its string name. |
private static void |
readPropertyFiles()
This method reads in both property files and thus does the main work of the PropertyManager. |
| 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 generalProperties
generalProperties contains the properties
defined in the global property file.
private static java.util.Properties localProperties
localProperties contains the properties defined
in the local, machine-specific property file.
private static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public PropertyManager()
| Method Detail |
|---|
public static java.lang.String getProperty(java.lang.String key)
key - The string name of the property of which the value has to be
read.
private static void readPropertyFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||