Why do we need it?

  • Allows our beans access to its instantiation name

In the Bean

  • Make Spring Bean implement BeanNameAware
  • create private member variable for beanName
  • override public void setBeanName(…)

Problem

  • Tightly couples our code to the Spring Framework

Leave a comment

Skills421

Welcome to Skills421, our knowledge repository for all things tech in the 21st century

Let’s connect

Search