org.kuali.rice.kns.util.properties
Class FilePropertySource
java.lang.Object
org.kuali.rice.kns.util.properties.FilePropertySource
- All Implemented Interfaces:
- PropertySource
public class FilePropertySource
- extends Object
- implements PropertySource
This class is used to obtain properties from a properites file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePropertySource
public FilePropertySource()
setFileName
public void setFileName(String fileName)
- Set source fileName.
- Parameters:
fileName
-
getFileName
public String getFileName()
- Returns:
- source fileName
isAllowOverrides
public boolean isAllowOverrides()
setAllowOverrides
public void setAllowOverrides(boolean allowOverrides)
loadProperties
public Properties loadProperties()
- Attempts to load properties from a properties file which has the current fileName and is located on the classpath.
- Specified by:
loadProperties
in interface PropertySource
- Returns:
- Properties loaded from this PropertySource
- Throws:
IllegalStateException
- if the fileName is null or empty- See Also:
PropertySource.loadProperties()
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.