BeanFactory typed Containers
BeanFactory | |||||
DefaultListableBeanFactory | |||||
fgfgXMLBeanFactory | |||||
BeanDefinitionRegistry | |||||
XmlBeanDefinitionReader | |||||
PropertiesBeanDefinitionReader | |||||
BeanDefinition | |||||
BeanDefinitionVisistor | |||||
StringValueResolver | |||||
Resource | |||||
FileSystemResource | |||||
ByteArrayResource | |||||
ClassPathResource | |||||
DescriptiveResource | |||||
InputStreamResource | |||||
PortletContextResource | |||||
ServletContextResource | |||||
UrlResource | |||||
ResourceLoader | |||||
DefaultResourceLoader | |||||
MethodReplacer | |||||
FactoryBean | |||||
JndiObjectFactoryBean | |||||
PropertyEditor | |||||
PropertyEditorSupport | |||||
ExpressionParser | |||||
Expression | |||||
ParseException | |||||
EvaluationException | |||||
FileUtil | |||||
ExceptionUtil | |||||
FileCopyUtil |
ApplicationContext typed Container
ApplicationContext | |||
ConfigurableApplicationContext | |||
Load configuration from classpath | |||
Load configuration from filesystem | |||
Load configuration from war file | |||
AnnotationConfigApplicationContext | Load configuration from JavaConfig | ||
AnnotationWebConfigApplicationContext | Load configuration from JavaConfig for web application | ||
ContextLoader | |||
ContextLoaderListener | |||
ContextLoaderServlet | |||
ApplicationContextAwareProcessor | |||
LoadTimeWeaverAware | |||
MessageSourceAware | |||
ApplicationEventPublisherAware | |||
ResourceLoaderAware | |||
LifeCycle | |||
ApplicationEvent | |||
ApplicationListener | |||
ApplicationEventPublisher | |||
ContextClosedEvent | |||
ContextRefreshedEvent | |||
RequestHandledEvent | |||
ApplicationEventMulticaster | |||
BeanNameGenerator |
Bean life-cycle API
Bean life-cycle phases
Instantiate
populate properties
BeanNameAware
BeanFactoryAware
ApplicationContextAware
BeanPostProcessor( Pre-Initialization )
InitializingBean's afterPropertiesSet();
call custom init-method
BeanPostProcessor( Post
Initialization )
( Live Bean in Application context )
DisposableBean
custom-destory method
InitializingBean | replace by @PostConstruct |
DisposableBean | replace by @PreDestory |
BeanPostProcessors | |
CommonAnnotationBeanPostProcessor | |
AutowiredAnnotationBeanPostProcessor | |
DestructionAwareBeanPostProcessor | |
InitDestroyAnnotationBeanPostProcessor | |
BeanFactoryPostProcessor | |
it has 8 BeanFactory post process comes with spring distribution | |
BeanNameAware | |
BeanFactoryAware | |
ApplicationContextAware |