What are the various steps involved in a Spring beans life cycle?
The bean factory performs several steps before a bean is ready is use:
- Instantiate.
- 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.