| org.springframework.beans.factory.BeanNameAware
All known Subclasses: org.springframework.beans.factory.config.PropertyPlaceholderConfigurer, org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator, org.springframework.scheduling.quartz.JobDetailBean, org.springframework.beans.factory.config.PropertyPathFactoryBean, org.springframework.jms.listener.AbstractPollingMessageListenerContainer, org.springframework.scheduling.quartz.CronTriggerBean, org.springframework.orm.hibernate3.TypeDefinitionBean, org.springframework.scheduling.backportconcurrent.ScheduledExecutorFactoryBean, org.springframework.scheduling.backportconcurrent.ThreadPoolTaskExecutor, org.springframework.scheduling.concurrent.ScheduledExecutorFactoryBean, org.springframework.jms.listener.AbstractJmsListeningContainer, org.springframework.web.servlet.view.AbstractView, org.springframework.web.servlet.mvc.ServletForwardingController, org.springframework.beans.factory.config.FieldRetrievingFactoryBean, org.springframework.orm.hibernate3.FilterDefinitionFactoryBean, org.springframework.cache.ehcache.EhCacheFactoryBean, org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean, org.springframework.scheduling.timer.TimerFactoryBean, org.springframework.scheduling.quartz.SimpleTriggerBean, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor, org.springframework.web.portlet.mvc.PortletWrappingController, org.springframework.web.filter.GenericFilterBean, org.springframework.web.servlet.mvc.ServletWrappingController,
BeanNameAware | public interface BeanNameAware (Code) | | Interface to be implemented by beans that want to be aware of their
bean name in a bean factory. Note that it is not usually recommended
that an object depend on its bean name, as this represents a potentially
brittle dependence on external configuration, as well as a possibly
unnecessary dependence on a Spring API.
For a list of all bean lifecycle methods, see the
BeanFactory BeanFactory javadocs .
author: Juergen Hoeller since: 01.11.2003 See Also: BeanClassLoaderAware See Also: BeanFactoryAware See Also: InitializingBean |
Method Summary | |
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 such as
InitializingBean.afterPropertiesSet or a custom init-method.
Parameters: name - the name of the bean in the factory.Note that this name is the actual bean name used in the factory, which maydiffer from the originally specified name: in particular for inner beannames, the actual bean name might have been made unique through appending"#..." suffixes. |
setBeanName | void setBeanName(String name)(Code) | | 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 such as
InitializingBean.afterPropertiesSet or a custom init-method.
Parameters: name - the name of the bean in the factory.Note that this name is the actual bean name used in the factory, which maydiffer from the originally specified name: in particular for inner beannames, the actual bean name might have been made unique through appending"#..." suffixes. Use the BeanFactoryUtils.originalBeanName(String)method to extract the original bean name (without suffix), if desired. |
|
|