org.kuali.rice.core.impl.services
Class ConfigurationServiceImpl.FilePropertySource

java.lang.Object
  extended by org.kuali.rice.core.impl.services.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


Constructor Summary
protected ConfigurationServiceImpl.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceImpl.FilePropertySource

protected ConfigurationServiceImpl.FilePropertySource()
Method Detail

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–2015 The Kuali Foundation. All rights reserved.