|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.web.parsers.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 java.lang.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 java.util.Properties |
load(java.lang.String aFileName,
int loadMask)
This method decides which option the user wants and loads the files according to the decision. |
static java.util.Properties |
loadLocal(java.lang.String aFileName)
This method loads a single specific property file. |
static java.util.Properties |
loadLocal(java.lang.String aFileName,
java.util.Properties someProperties)
This method loads a specific property file in combination with some existing properties. |
static java.util.Properties |
loadSystem(java.util.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 java.lang.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 java.util.Properties load(java.lang.String aFileName, int loadMask)
aFileName
- the name of a specific property file to loadloadMask
- an integer describing which load option to use
public static java.util.Properties loadLocal(java.lang.String aFileName)
aFileName
- name of the property file to load
public static java.util.Properties loadLocal(java.lang.String aFileName, java.util.Properties someProperties)
aFileName
- name of the property file to loadsomeProperties
- the existing properties
public static java.util.Properties loadSystem(java.util.Properties someProperties)
someProperties
- the existing properties
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |