org.unitils.core.util
Class PropertiesReader
java.lang.Object
org.unitils.core.util.PropertiesReader
public class PropertiesReader
- extends Object
- Author:
- Fabian Krueger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesReader
public PropertiesReader()
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.