XProperties 1.0.3

at.spardat.properties
Class PropertyLoader

java.lang.Object
  extended byat.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.


Field Summary
static java.lang.String ROOT_PROPERTY_FILE_NAME
           
static java.lang.String SYS_ENV_NAME_FOR_ROOT_FILE
           
 
Constructor Summary
PropertyLoader()
           
 
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
 

Field Detail

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
Constructor Detail

PropertyLoader

public PropertyLoader()
Method Detail

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 file
rootFileName - name of the root file
Returns:
PropertyData object which contains all loaded properties
Throws:
PropertyInitException - in case of syntax errors

XProperties 1.0.3