issues
search
zxy16305
/
Blog
bak for hexo
3
stars
1
forks
source link
spring源码阅读笔记⑤--注解记录--持续更新
#4
Closed
zxy16305
closed
6 years ago
zxy16305
commented
6 years ago
bean factory 的初始化
*
BeanNameAware's {@code setBeanName} *
BeanClassLoaderAware's {@code setBeanClassLoader} *
BeanFactoryAware's {@code setBeanFactory} *
EnvironmentAware's {@code setEnvironment} *
EmbeddedValueResolverAware's {@code setEmbeddedValueResolver} *
ResourceLoaderAware's {@code setResourceLoader} * (only applicable when running in an application context) *
ApplicationEventPublisherAware's {@code setApplicationEventPublisher} * (only applicable when running in an application context) *
MessageSourceAware's {@code setMessageSource} * (only applicable when running in an application context) *
ApplicationContextAware's {@code setApplicationContext} * (only applicable when running in an application context) *
ServletContextAware's {@code setServletContext} * (only applicable when running in a web application context) *
{@code postProcessBeforeInitialization} methods of BeanPostProcessors *
InitializingBean's {@code afterPropertiesSet} *
a custom init-method definition *
{@code postProcessAfterInitialization} methods of BeanPostProcessors *
bean factory 的初始化
*- BeanNameAware's {@code setBeanName}
*
- BeanClassLoaderAware's {@code setBeanClassLoader}
*
- BeanFactoryAware's {@code setBeanFactory}
*
- EnvironmentAware's {@code setEnvironment}
*
- EmbeddedValueResolverAware's {@code setEmbeddedValueResolver}
*
- ResourceLoaderAware's {@code setResourceLoader}
* (only applicable when running in an application context)
*
- ApplicationEventPublisherAware's {@code setApplicationEventPublisher}
* (only applicable when running in an application context)
*
- MessageSourceAware's {@code setMessageSource}
* (only applicable when running in an application context)
*
- ApplicationContextAware's {@code setApplicationContext}
* (only applicable when running in an application context)
*
- ServletContextAware's {@code setServletContext}
* (only applicable when running in a web application context)
*
- {@code postProcessBeforeInitialization} methods of BeanPostProcessors
*
- InitializingBean's {@code afterPropertiesSet}
*
- a custom init-method definition
*
- {@code postProcessAfterInitialization} methods of BeanPostProcessors
*