@Component(value="cuba_Configuration") public class ConfigurationImpl extends java.lang.Object implements Configuration, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware
Configuration
interface.Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected java.util.Map<java.lang.Class,ConfigHandler> |
cache |
NAME
Constructor and Description |
---|
ConfigurationImpl() |
Modifier and Type | Method and Description |
---|---|
protected ConfigPersisterImpl |
createPersister() |
<T extends Config> |
getConfig(java.lang.Class<T> configInterface)
Get a configuration parameters interface implementation.
|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected java.util.Map<java.lang.Class,ConfigHandler> cache
protected org.springframework.context.ApplicationContext applicationContext
public <T extends Config> T getConfig(java.lang.Class<T> configInterface)
Configuration
getConfig
in interface Configuration
configInterface
- class of configuration interfacepublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
protected ConfigPersisterImpl createPersister()
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException