Each bean contains a unique name configured in the configuration. This name can be made available to the bean class by setBeanName(). If the bean class implements the BeanNameAware interface, its setBeanName() method gets invoked to set the bean name.