- Learning how to use dynamics proxy in correct way.
- Learning how spring IoC works.
- Resource Management
- Bean Definition Management
- Bean initialize
1. A container for beans (BeanFactory)
2. Beans registered
3. Hooks for beans registered.(BeanPostProcessor)
4. Resolve bean's dependency problem
5. Better interface for operating Beans (ApplicationContext)
Q1. How AOP works in IoC Container?
A1. The IoC Container support the hook (BeanPostProcessor) which you can use any process you want when initial beans.
So you can use AOP before bean initialize aware some custom logic.
Q2. How to manage Resources? A2.
1. dynamic proxy
2. Implementing BeanPostProcessor
Reference: