title: BeanNameAware and BeanFactoryAware
body: <p>What is the use of <code>BeanNameAware</code> and <code>BeanFactoryAware</code>? I was studying spring and came across these two interfaces.
  I googled them but nothing useful came up.
  Please tell me what is the functionality of <code>BeanNameAware</code> and <code>BeanFactoryAware</code> interfaces and when to use these?</p>