de.uniba.wiai.lspi.chord.service
Class PropertiesLoader

java.lang.Object
  extended by de.uniba.wiai.lspi.chord.service.PropertiesLoader

public final class PropertiesLoader
extends java.lang.Object

This class is responsible for loading all properties of a given property file and for setting them as Java properties for this JVM. Unless otherwise stated this class tries to load the property file named STANDARD_PROPERTY_FILE which must be located in the classpath. If another file should be loaded, its file name has to be set as value for property PROPERTY_WHERE_TO_FIND_PROPERTY_FILE.

Version:
1.0.5 modified, 0.99b
Author:
karsten, francesco

Field Summary
static java.lang.String PROPERTY_WHERE_TO_FIND_PROPERTY_FILE
          Name of property which has to be set for loading a specific property file.
static java.lang.String STANDARD_PROPERTY_FILE
          File name of property file which is loaded, if no other file is specified.
 
Method Summary
static boolean isLoaded()
           
static void loadPropertyFile()
          Reads the properties from property file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_WHERE_TO_FIND_PROPERTY_FILE

public static final java.lang.String PROPERTY_WHERE_TO_FIND_PROPERTY_FILE
Name of property which has to be set for loading a specific property file.

See Also:
Constant Field Values

STANDARD_PROPERTY_FILE

public static final java.lang.String STANDARD_PROPERTY_FILE
File name of property file which is loaded, if no other file is specified.

See Also:
Constant Field Values
Method Detail

loadPropertyFile

public static void loadPropertyFile()
Reads the properties from property file. Either uses the standard property file or, if specified, a given property file. In either case the property file must be located in the classpath.


isLoaded

public static boolean isLoaded()