Spring interview question life cycle of a bean interviewdotcom job portal



Click here – https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. 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
What is the typical Bean life cycle in Spring Bean Factory Container ?

Bean life cycle in Spring Bean Factory Container is as follows:
The spring container finds the bean’s definition from the XML file and instantiates the bean.

Using the dependency injection, spring populates all of the properties as specified in the bean definition

If the bean implements the BeanNameAware interface, the factory calls setBeanName() passing the bean’s ID.

If the bean implements the BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself.

If there are any BeanPostProcessors associated with the bean, their post- ProcessBeforeInitialization() methods will be called.

If an init-method is specified for the bean, it will be called.

Finally, if there are any BeanPostProcessors associated with the bean, their postProcessAfterInitialization() methods will be called.
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

source

Leave a Reply

Your email address will not be published.

47  −  46  =  

Get your Android App here
For daily dose of what's happenings around!
No, thank you. I do not want.
100% Secure App.
Powered by