public interface ConfigurationService extends Service
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
ConfigurationService.Converter<T>
Simple conversion contract for converting an untyped object to a specified type. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
cast(Class<T> expected,
    Object candidate)
Deprecated. 
 
No idea why this is exposed here... 
 | 
<T> T | 
getSetting(String name,
          Class<T> expected,
          T defaultValue)
Get the named setting. 
 | 
<T> T | 
getSetting(String name,
          ConfigurationService.Converter<T> converter)
Get the named setting, using the specified converter. 
 | 
<T> T | 
getSetting(String name,
          ConfigurationService.Converter<T> converter,
          T defaultValue)
Get the named setting, using the specified converter and default value. 
 | 
Map | 
getSettings()
Access to the complete map of config settings. 
 | 
Map getSettings()
<T> T getSetting(String name, ConfigurationService.Converter<T> converter)
T - The Java type of the conversionname - The name of the setting to get.converter - The converter to applynull (see getSetting(String, Class, Object))<T> T getSetting(String name, ConfigurationService.Converter<T> converter, T defaultValue)
T - The Java type of the conversionname - The name of the setting to get.converter - The converter to applydefaultValue - If no setting with that name is found, return this default value as the result.<T> T getSetting(String name, Class<T> expected, T defaultValue)
T - The Java type of the conversionname - The name of the setting to get.expected - The expected Java type.defaultValue - If no setting with that name is found, return this default value as the result.@Deprecated <T> T cast(Class<T> expected, Object candidate)
T - The java type of the expected returnexpected - The type of instance expected to return.candidate - The candidate object to be casted.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.