org.unitils.core.util
Class PropertiesReader

java.lang.Object
  extended by org.unitils.core.util.PropertiesReader

public class PropertiesReader
extends Object

Author:
Fabian Krueger

Constructor Summary
PropertiesReader()
           
 
Method Summary
 Properties loadPropertiesFileFromClasspath(String propertiesFileName)
          Loads the properties file with the given name, which is available in the classpath.
 Properties loadPropertiesFileFromUserHome(String propertiesFileName)
          Loads the properties file with the given name, which is available in the user home folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesReader

public PropertiesReader()
Method Detail

loadPropertiesFileFromUserHome

public Properties loadPropertiesFileFromUserHome(String propertiesFileName)
Loads the properties file with the given name, which is available in the user home folder. If no file with the given name is found, null is returned.

Parameters:
propertiesFileName - The name of the properties file
Returns:
The Properties object, null if the properties file wasn't found.

loadPropertiesFileFromClasspath

public Properties loadPropertiesFileFromClasspath(String propertiesFileName)
Loads the properties file with the given name, which is available in the classpath. If no file with the given name is found, null is returned.

Parameters:
propertiesFileName - The name of the properties file
Returns:
The Properties object, null if the properties file wasn't found.


Copyright © 2011. All Rights Reserved.