org.kuali.rice.core.api.config.property
Interface ConfigurationService

All Known Implementing Classes:
ConfigurationServiceImpl

public interface ConfigurationService

ConfigurationService is an abstraction of system configuration for KNS clients which provides methods for getting string resources, including Kuali message resource strings.


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.
 

Method Detail

getPropertyValueAsString

String getPropertyValueAsString(String key)
Given a property name (key), returns the value associated with that key, or null if none is available.

Parameters:
key -
Returns:
String associated with the given key
Throws:
IllegalArgumentException - if the key is null

getPropertyValueAsBoolean

boolean getPropertyValueAsBoolean(String key)
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

Parameters:
key -
Returns:
String associated with the given key
Throws:
IllegalArgumentException - if the key is null

getAllProperties

Map<String,String> getAllProperties()
Returns:
Properties instance containing all (key,value) pairs known to the service


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