org.springframework.beans.factory
Interface BeanNameAware

All Known Implementing Classes:
AbstractExcelView, AbstractJasperReportsSingleFormatView, AbstractJasperReportsView, AbstractJExcelView, AbstractPdfView, AbstractRequestLoggingFilter, AbstractTemplateView, AbstractUrlBasedView, AbstractView, AbstractXsltView, CharacterEncodingFilter, CommonsRequestLoggingFilter, CronTriggerBean, DefaultAdvisorAutoProxyCreator, DelegatingFilterProxy, EhCacheFactoryBean, FieldRetrievingFactoryBean, FilterDefinitionFactoryBean, FreeMarkerView, GenericFilterBean, InternalResourceView, JasperReportsCsvView, JasperReportsHtmlView, JasperReportsMultiFormatView, JasperReportsPdfView, JasperReportsXlsView, JobDetailBean, JstlView, Log4jNestedDiagnosticContextFilter, MethodInvokingJobDetailFactoryBean, MultipartFilter, OncePerRequestFilter, OpenPersistenceManagerInViewFilter, OpenSessionInViewFilter, OpenSessionInViewFilter, PreferencesPlaceholderConfigurer, PropertyPathFactoryBean, PropertyPlaceholderConfigurer, RedirectView, ServletContextPropertyPlaceholderConfigurer, ServletContextRequestLoggingFilter, ServletForwardingController, ServletWrappingController, SimpleTriggerBean, TilesJstlView, TilesView, TypeDefinitionBean, VelocityLayoutView, VelocityToolboxView, VelocityView

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(String name)
          Set the name of the bean in the bean factory that created this bean.
 

Method Detail

setBeanName

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


Copyright (c) 2002-2007 The Spring Framework Project.