aspose file tools
The moose likes Spring and the fly likes what is Set bean name in bean's life Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "what is Set bean name in bean Watch "what is Set bean name in bean New topic
Author

what is Set bean name in bean's life

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
I am reading Spring in Action book.
it saying that beans has life cycle several steps.
3 rd one is Set bean name =If the bean implements BeanNameAware, Spring passes thebean’s ID to setBeanName().

1)my question is what is BeanNameAware interface?
2)when do we impliment that interface?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
The BeanNameAware interface is the interface that tells Spring it should set the bean name on the bean.

You implement it when you want a bean to be aware of its name.
 
 
subject: what is Set bean name in bean's life
 
Threads others viewed
why to implement BeanNameAware
Confused about bean's lifecycle method chain
Lifecycle of Spring Bean.
access bean id programatically
Practical use of Bean Name Aware, Bean Factory Aware
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture