org.kuali.rice.kns.util.properties
Class FilePropertySource

java.lang.Object
  extended by 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.


Constructor Summary
FilePropertySource()
           
 
Method Summary
 String getFileName()
           
 boolean isAllowOverrides()
           
 Properties loadProperties()
          Attempts to load properties from a properties file which has the current fileName and is located on the classpath.
 void setAllowOverrides(boolean allowOverrides)
           
 void setFileName(String fileName)
          Set source fileName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePropertySource

public FilePropertySource()
Method Detail

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.