Java Spring Framework Question:
Download Job Interview Questions and Answers PDF
What is Bean Factory?
Answer:
A BeanFactory is like a factory class that contains a collection of beans. The BeanFactory holds Bean Definitions of multiple beans within itself and then instantiates the bean whenever asked for by clients.
► BeanFactory is able to create associations between collaborating objects as they are instantiated. This removes the burden of configuration from bean itself and the beans client.
► BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.
► BeanFactory is able to create associations between collaborating objects as they are instantiated. This removes the burden of configuration from bean itself and the beans client.
► BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.
Download Spring Framework Interview Questions And Answers
PDF
Previous Question | Next Question |
What are the types of Dependency Injection Spring supports? | What is Application Context? |