at.spardat.properties
Class PropertyLoader
java.lang.Object
at.spardat.properties.PropertyLoader
- public class PropertyLoader
- extends java.lang.Object
This class is responsible for loading the property files from the
filesystem and the classloader into a PropertyData instance.
|
Method Summary |
static PropertyData |
loadRoot()
Tries to find and load the root property file "root.properties". |
static PropertyData |
loadRoot(java.lang.ClassLoader loader)
Tries to find and load the root property file "root.properties". |
static PropertyData |
loadRoot(java.lang.ClassLoader loader,
java.lang.String rootFileName)
Tries to find and load the root property file "root.properties". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_PROPERTY_FILE_NAME
public static final java.lang.String ROOT_PROPERTY_FILE_NAME
- See Also:
- Constant Field Values
SYS_ENV_NAME_FOR_ROOT_FILE
public static final java.lang.String SYS_ENV_NAME_FOR_ROOT_FILE
- See Also:
- Constant Field Values
PropertyLoader
public PropertyLoader()
loadRoot
public static PropertyData loadRoot()
- Tries to find and load the root property file "root.properties".
- Returns:
- PropertyData object which contains all loaded properties
- Throws:
PropertyInitException - in case of syntax errors
loadRoot
public static PropertyData loadRoot(java.lang.ClassLoader loader)
- Tries to find and load the root property file "root.properties".
- Parameters:
loader - ClassLoader which shall be used to find the root.properties file
- Returns:
- PropertyData object which contains all loaded properties
- Throws:
PropertyInitException - in case of syntax errors
loadRoot
public static PropertyData loadRoot(java.lang.ClassLoader loader,
java.lang.String rootFileName)
- Tries to find and load the root property file "root.properties".
- Parameters:
loader - ClassLoader which shall be used to find the root.properties filerootFileName - name of the root file
- Returns:
- PropertyData object which contains all loaded properties
- Throws:
PropertyInitException - in case of syntax errors