org.springframework.beans.factory
Interface BeanNameAware
- All Known Implementing Classes:
- AdvisorAutoProxyCreator, AbstractView
- public interface BeanNameAware
Interface to be implemented by beans that want to be aware of their
bean name in a bean factory.
For a list of all bean lifecycle methods, see the BeanFactory javadocs.
- Author:
- Juergen Hoeller
- Since: 01.11.2oo3
- See Also: BeanFactoryAware, InitializingBean, BeanFactory
| Method Summary |
void | setBeanName(String name) Set the name of the bean in the bean factory that created this bean. |
setBeanName
public void setBeanName(String name)
- Set the name of the bean in the bean factory that created this bean.
Invoked after population of normal bean properties but before an init
callback like InitializingBean's afterPropertiesSet or a custom init-method.
- Parameters:
- name - the name of the bean in the factory