org.springframework.beans.factory
Interface BeanNameAware

All Known Implementing Classes:
AbstractView, AdvisorAutoProxyCreator, CronTriggerBean, JobDetailBean, MethodInvokingJobDetailFactoryBean, SimpleTriggerBean

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.

Since:
01.11.2oo3
Author:
Juergen Hoeller
See Also:
BeanFactoryAware, InitializingBean, BeanFactory

Method Summary
 void setBeanName(java.lang.String name)
          Set the name of the bean in the bean factory that created this bean.
 

Method Detail

setBeanName

public void setBeanName(java.lang.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


Copyright (C) 2003-2004 The Spring Framework Project.