@Component(value="cuba_Configuration") public class ConfigurationClientImpl extends java.lang.Object implements ClientConfiguration
Modifier and Type | Field and Description |
---|---|
protected ConfigStorageService |
configStorageCache |
protected java.util.Map<java.lang.Class,ConfigHandler> |
handlersCache |
NAME
Constructor and Description |
---|
ConfigurationClientImpl() |
Modifier and Type | Method and Description |
---|---|
protected ConfigPersister |
createConfigPersister(boolean caching) |
<T extends Config> |
getConfig(java.lang.Class<T> configInterface)
Get a configuration parameters interface implementation.
|
<T extends Config> |
getConfigCached(java.lang.Class<T> configInterface)
A config implementation instance obtained through this method caches DB-stored parameter values to minimize
server invocations.
|
ConfigStorageService |
getConfigStorageService() |
protected void |
setBeanLocator(BeanLocator beanLocator) |
protected java.util.Map<java.lang.Class,ConfigHandler> handlersCache
protected ConfigStorageService configStorageCache
@Inject protected void setBeanLocator(BeanLocator beanLocator)
public <T extends Config> T getConfig(java.lang.Class<T> configInterface)
Configuration
getConfig
in interface Configuration
configInterface
- class of configuration interfacepublic <T extends Config> T getConfigCached(java.lang.Class<T> configInterface)
ClientConfiguration
getConfigCached
in interface ClientConfiguration
configInterface
- class of configuration interfaceprotected ConfigPersister createConfigPersister(boolean caching)
public ConfigStorageService getConfigStorageService()