public class ConfigurationServiceImpl extends java.lang.Object implements ConfigurationService, ServiceRegistryAwareService
ConfigurationService.Converter<T>| Constructor and Description |
|---|
ConfigurationServiceImpl(java.util.Map settings) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
cast(java.lang.Class<T> expected,
java.lang.Object candidate)
Cast candidate to the instance of expected type.
|
<T> T |
getSetting(java.lang.String name,
java.lang.Class<T> expected,
T defaultValue) |
<T> T |
getSetting(java.lang.String name,
ConfigurationService.Converter<T> converter) |
<T> T |
getSetting(java.lang.String name,
ConfigurationService.Converter<T> converter,
T defaultValue) |
java.util.Map |
getSettings() |
void |
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.
|
public java.util.Map getSettings()
getSettings in interface ConfigurationServicepublic void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareServiceinjectServices in interface ServiceRegistryAwareServiceserviceRegistry - The registrypublic <T> T getSetting(java.lang.String name,
ConfigurationService.Converter<T> converter)
getSetting in interface ConfigurationServicepublic <T> T getSetting(java.lang.String name,
ConfigurationService.Converter<T> converter,
T defaultValue)
getSetting in interface ConfigurationServicepublic <T> T getSetting(java.lang.String name,
java.lang.Class<T> expected,
T defaultValue)
getSetting in interface ConfigurationServicepublic <T> T cast(java.lang.Class<T> expected,
java.lang.Object candidate)
ConfigurationServicecast in interface ConfigurationServiceexpected - The type of instance expected to return.candidate - The candidate object to be casted.Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.