The bean factory performs several steps before a bean is ready is use:
- Populate properties.
- The factory calls BeanNameAware\'s setBeanName() method.
- The factory calls BeanFactoryAware\'s setBeanFactory() method.
- PostProcessBeforeInitialization() method is called if BeanPostProcessor associated with the bean.
- An init-method is called, if specified.
- Finally, PostProcessAfterInitialization() is called if BeanPostProcessor associated with it.