Explain beans life cycle spring interview questions interviewdot

2,510 views · Published 30 September 2013 · 1:41 · Indexed 10 November 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Explain Spring bean life cycle -- Spring interview question ?

1. The spring container finds the bean's definition from the XML file and instantiates the bean.2. Using the dependency injection, spring populates all of the properties as specified in the bean definition.3. If the bean implements the BeanNameAware interface, the factory calls setBeanName() passing the bean's ID.4. If the bean implements the BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself.5. If there are any BeanPostProcessors associated with the bean, their post- ProcessBeforeInitialization() methods will be called.6. If an init-method is specified for the bean, it will be called.7. Finally, if there are any BeanPostProcessors associated with the bean, their postProcessAfterInitialization() methods will be called.

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel