|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.parsers.PropertyLoader
public class PropertyLoader
This class allows another class to load the appropriate property files into one complete Property object. It enables the loading of a single specific property file, a specific property file and the bluebird properties, or the previous two along with the System properties where the System properties take precedence over the previous two.
| Field Summary | |
|---|---|
static int |
ALL
Loads a local property file, the bluebird properties, and the system properties into the same Properties object. |
static String |
BLUEBIRD_PROP
The bluebird system property file name |
static int |
LOCAL_BLUEBIRD
A local property and the bluebird properties will be loaded into the same Properties object. |
static int |
LOCAL_ONLY
Only a local property file will be loaded |
| Constructor Summary | |
|---|---|
PropertyLoader()
|
|
| Method Summary | |
|---|---|
static Properties |
load(String aFileName,
int loadMask)
This method decides which option the user wants and loads the files according to the decision. |
static Properties |
loadLocal(String aFileName)
This method loads a single specific property file. |
static Properties |
loadLocal(String aFileName,
Properties someProperties)
This method loads a specific property file in combination with some existing properties. |
static Properties |
loadSystem(Properties someProperties)
This method loads the System properties into an already existing Properties object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BLUEBIRD_PROP
public static final int LOCAL_ONLY
public static final int LOCAL_BLUEBIRD
public static final int ALL
| Constructor Detail |
|---|
public PropertyLoader()
| Method Detail |
|---|
public static Properties load(String aFileName,
int loadMask)
aFileName - the name of a specific property file to loadloadMask - an integer describing which load option to use
public static Properties loadLocal(String aFileName)
aFileName - name of the property file to load
public static Properties loadLocal(String aFileName,
Properties someProperties)
aFileName - name of the property file to loadsomeProperties - the existing properties
public static Properties loadSystem(Properties someProperties)
someProperties - the existing properties
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||