| Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger | |
| private ServiceRegistryImplementor | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | ConfigurationServiceImpl(Map<K, V>
The map of settings settings)Constructs a ConfigurationServiceImpl |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | cast(Class<T>
The type of instance expected to return. expected, Object The candidate object to be casted. candidate)Implements org. |
| public <T> T | getSetting(String
The name of the setting to get. name, ConfigurationService.The converter to apply converterImplements org. |
| public <T> T | getSetting(String
The name of the setting to get. name, ConfigurationService.The converter to apply converter,If no setting with that name is found, return this default value as the result. defaultValue)Implements org. |
| public <T> T | getSetting(String
The name of the setting to get. name, Class<T> The expected Java type. expected, T If no setting with that name is found, return this default value as the result. defaultValue)Implements org. |
| public Map | getSettings()
Implements org. |
| public void | injectServices(ServiceRegistryImplementor
The registry serviceRegistry)Implements org. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| serviceRegistry | back to summary |
|---|---|
| private ServiceRegistryImplementor serviceRegistry | |
| settings | back to summary |
|---|---|
| private final Map<K, V> settings | |
| ConfigurationServiceImpl | back to summary |
|---|---|
| public ConfigurationServiceImpl(Map<K, V> settings) Constructs a ConfigurationServiceImpl
| |
| cast | back to summary |
|---|---|
| public <T> T cast(Class<T> expected, Object candidate) Implements org. Doc from org. Cast candidate to the instance of expected type.
| |
| getSetting | back to summary |
|---|---|
| public <T> T getSetting(String name, ConfigurationService. Implements org. Doc from org. Get the named setting, using the specified converter.
| |
| getSetting | back to summary |
|---|---|
| public <T> T getSetting(String name, ConfigurationService. Implements org. Doc from org. Get the named setting, using the specified converter and default value.
| |
| getSetting | back to summary |
|---|---|
| public <T> T getSetting(String name, Class<T> expected, T defaultValue) Implements org. Doc from org. Get the named setting. Differs from the form taking a Converter in that here we expect to have a simple cast rather than any involved conversion.
| |
| getSettings | back to summary |
|---|---|
| public Map Implements org. Doc from org. Access to the complete map of config settings. The returned map is immutable | |
| injectServices | back to summary |
|---|---|
| public void injectServices(ServiceRegistryImplementor serviceRegistry) Implements org. Doc from org. Callback to inject the registry.
| |