Bean life cycle in a Spring Bean Factory Container
Elaborate typical Bean life cycle in a Spring Bean Factory Container?
Expert
Bean life cycle in a Spring Bean Factory Container is: - The spring container discovers a bean’s definition from an XML file and instantiates the bean. - Using a dependency injection, spring fills all of properties as stated in a bean definition - If a bean implements BeanNameAware interface, then factory calls setBeanName() passing bean’s ID. - If a bean implements BeanFactoryAware interface, the factory calls setBeanFactory(), passing an instance of itself. - If there are BeanPostProcessors related with a bean, their post- ProcessBeforeInitialization() methods will be called. - If an init-method is stated for a bean then it will be called. - At last, if there are any BeanPostProcessors linked with a bean then their postProcessAfterInitialization() methods will be called.
Illustrate the Core container module?
Describe the main parts of JMS applications?
Differentiate between a JDK and a JVM?
What do you mean by a pointer and does Java support pointers?
Illustrate objects lock and which objects have locks?
Elaborate the term JMS API?
Illustrate the purpose of the wait(), notify(), and notifyAll() methods?
How threads invokes a run() method?
Describe different modules in a Spring framework?
Describe the Application context module?
18,76,764
1952766 Asked
3,689
Active Tutors
1414416
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!