public class ConfigurationServiceImpl extends Object implements ConfigurationService
ConfigurationService
that loads
messages from the configured rice config files and stores them in an internal property holderModifier and Type | Class and Description |
---|---|
protected static class |
ConfigurationServiceImpl.FilePropertySource
Used to obtain properties from a properties file
|
protected static class |
ConfigurationServiceImpl.PropertyHolder
This class is a Property container.
|
protected static interface |
ConfigurationServiceImpl.PropertySource
Interface for a source for properties
|
Constructor and Description |
---|
ConfigurationServiceImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllProperties()
Returns all properties configured for the Rice instance
|
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.
|
public ConfigurationServiceImpl()
public String getPropertyValueAsString(String key)
ConfigurationService
getPropertyValueAsString
in interface ConfigurationService
key
- - key for the message in application resourcesConfigurationService.getPropertyValueAsString(String)
public boolean getPropertyValueAsBoolean(String key)
ConfigurationService
true, yes, on, or 1 are translated into true - all other values result in false
getPropertyValueAsBoolean
in interface ConfigurationService
key
- - key for the message in application resourcesConfigurationService.getPropertyValueAsBoolean(String)
public Map<String,String> getAllProperties()
ConfigurationService
getAllProperties
in interface ConfigurationService
ConfigurationService.getAllProperties()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.