public class CommonContextBean extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected ClassLoader |
beanClassLoader |
protected String |
beanName |
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory |
configurableListableBeanFactory |
protected SofaRuntimeContext |
sofaRuntimeContext |
| Constructor and Description |
|---|
CommonContextBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
ClassLoader |
getBeanClassLoader() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanClassLoader(ClassLoader beanClassLoader) |
void |
setBeanName(String beanName) |
protected String beanName
protected ClassLoader beanClassLoader
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory
@Autowired protected SofaRuntimeContext sofaRuntimeContext
protected org.springframework.context.ApplicationContext applicationContext
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanClassLoader(ClassLoader beanClassLoader)
public ClassLoader getBeanClassLoader()
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareCopyright © 2021. All rights reserved.