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 ConfigurationService
public void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareService
injectServices
in interface ServiceRegistryAwareService
serviceRegistry
- The registrypublic <T> T getSetting(java.lang.String name, ConfigurationService.Converter<T> converter)
getSetting
in interface ConfigurationService
public <T> T getSetting(java.lang.String name, ConfigurationService.Converter<T> converter, T defaultValue)
getSetting
in interface ConfigurationService
public <T> T getSetting(java.lang.String name, java.lang.Class<T> expected, T defaultValue)
getSetting
in interface ConfigurationService
public <T> T cast(java.lang.Class<T> expected, java.lang.Object candidate)
ConfigurationService
cast
in interface ConfigurationService
expected
- The type of instance expected to return.candidate
- The candidate object to be casted.Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.