org.kuali.rice.krad.service.impl
Class ConfigurationServiceImpl.FilePropertySource
java.lang.Object
org.kuali.rice.krad.service.impl.ConfigurationServiceImpl.FilePropertySource
- All Implemented Interfaces:
- ConfigurationServiceImpl.PropertySource
- Enclosing class:
- ConfigurationServiceImpl
protected static class ConfigurationServiceImpl.FilePropertySource
- extends Object
- implements ConfigurationServiceImpl.PropertySource
Used to obtain properties from a properties file
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationServiceImpl.FilePropertySource
protected ConfigurationServiceImpl.FilePropertySource()
setFileName
public void setFileName(String fileName)
getFileName
public String getFileName()
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 ConfigurationServiceImpl.PropertySource
- Returns:
- Properties loaded from this PropertySource
- Throws:
IllegalStateException
- if the fileName is null or empty- See Also:
ConfigurationServiceImpl.PropertySource.loadProperties()
Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.