de.tuberlin.cs.cis.ocl.util
Class ConfigurationLoader

java.lang.Object
  |
  +--de.tuberlin.cs.cis.ocl.util.ConfigurationLoader

public class ConfigurationLoader
extends java.lang.Object

Loads configurations or properties of configuratable Objects in the framework.

Author:
fchabar

Constructor Summary
ConfigurationLoader()
           
 
Method Summary
static java.util.Properties loadConfiguration(java.lang.Class clasz, java.lang.String fileName)
          Loads the configuration of a class in form of property files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationLoader

public ConfigurationLoader()
Method Detail

loadConfiguration

public static final java.util.Properties loadConfiguration(java.lang.Class clasz,
                                                           java.lang.String fileName)
Loads the configuration of a class in form of property files. The property file is located in the classpath parallel to the specified class.

Parameters:
clasz - a class specifying the location of the property file.
fileName - the filename of the configuration file.
Returns:
the configuration file of the specified class in form of Properties.
See Also:
Class.getResource(String resource)