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 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.


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

Field Detail

PROPERTY_WHERE_TO_FIND_PROPERTY_FILE

public static final 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 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.



Copyright © 2004-2008 Karsten Loesing, Sven Kaffille - Distributed and Mobile Systems Group, Lehrstuhl für Praktische Informatik, Universität Bamberg. All Rights Reserved.