org.kuali.rice.krad.service.impl
Class ConfigurationServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.ConfigurationServiceImpl
All Implemented Interfaces:
ConfigurationService

public class ConfigurationServiceImpl
extends Object
implements ConfigurationService

ConfigurationService implementation which is a thin wrapper over the core Config object, and which merges in Kuali message resource properties.


Constructor Summary
ConfigurationServiceImpl()
          Harcoding the configFileName, by request.
 
Method Summary
 Map<String,String> getAllProperties()
           
 boolean getPropertyValueAsBoolean(String key)
          Given a property name (key), returns the "booleanized" value associated with that key.
 String getPropertyValueAsString(String key)
          Given a property name (key), returns the value associated with that key, or null if none is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceImpl

public ConfigurationServiceImpl()
Harcoding the configFileName, by request.

Method Detail

getPropertyValueAsString

public String getPropertyValueAsString(String key)
Description copied from interface: ConfigurationService
Given a property name (key), returns the value associated with that key, or null if none is available.

Specified by:
getPropertyValueAsString in interface ConfigurationService
Returns:
String associated with the given key
See Also:
ConfigurationService.getPropertyValueAsString(java.lang.String)

getPropertyValueAsBoolean

public boolean getPropertyValueAsBoolean(String key)
Description copied from interface: ConfigurationService
Given a property name (key), returns the "booleanized" value associated with that key. true, yes, on, or 1 are translated into true - all other values result in false

Specified by:
getPropertyValueAsBoolean in interface ConfigurationService
Returns:
String associated with the given key
See Also:
ConfigurationService.getPropertyValueAsBoolean(java.lang.String)

getAllProperties

public Map<String,String> getAllProperties()
Specified by:
getAllProperties in interface ConfigurationService
Returns:
Properties instance containing all (key,value) pairs known to the service
See Also:
ConfigurationService.getAllProperties()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.