O'Reilly logo
  • Prasad Akkineni thinks this is interesting:

1.  Spring instantiates the bean.

2.  Spring injects values and bean references into the bean’s properties.

3.  If the bean implements BeanNameAware, Spring passes the bean’s ID to the setBeanName() method.

From

Cover of Spring in Action, 4th Edition: Covers Spring 4

Note

Spring Bean life cycle