Explain bean lifecycle in spring framework, JAVA Programming

Assignment Help:

1. The spring container searches the bean's definition from the XML file and instantiates the bean.

2. Using the dependency injection, spring populates all of the properties as verified in the bean definition.

3. If the bean executes the BeanNameAware interface, the factory calls setBeanName() passing the bean's ID.

4. If the bean executes 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 verified for the bean, it will be called.

7. Finally, if there are any BeanPostProcessors associated with the bean, their postProcessAfterInitialization() methods will be called.

 


Related Discussions:- Explain bean lifecycle in spring framework

Describe general approaches to solve statelessness problem, Problem : (...

Problem : (a) One problem encountered when designing web applications is that HTTP is a "stateless" protocol. Describe two general approaches to solve the statelessness probl

Decoding program, 699906626330444777707776662233777 decoding program

699906626330444777707776662233777 decoding program

Want inventory selection function in opentaps erp, Required: Inventory Sele...

Required: Inventory Selection Function in Opentaps ERP We work on Opentaps ERP and Application development framework. Our requirement is to modify the Inventory selection functi

Tictactoe, write complete application to play game tictactoe

write complete application to play game tictactoe

Explain booleans in java, Explain Booleans in java? Booleans are named ...

Explain Booleans in java? Booleans are named after George Boole, a nineteenth century logician. Every boolean variable has one of two values, true or false. These are not the s

Prepare a game in corona for android and ios, Prepare a Game in Corona for ...

Prepare a Game in Corona for Android and IOS Project Description: We want to develop a game for mobile platform same as Zombie Smasher for iOS and Android. Everything is r

Write a program that manages a list of train tickets, A fictitious train co...

A fictitious train company, 'Transrail', has commissioned you to write a program that manages a list of train tickets. The program should display a text menu that prompts the us

OOP, differentiate between states and behaviors of n object

differentiate between states and behaviors of n object

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd