InterviewSolution
| 1. |
What is the difference between BeanFactory and ApplicationContext? |
|
Answer» BeanFactory is an INTERFACE that is the core of Spring’s Dependency Injection container. It is responsible for managing the components (beans), their dependencies and lifecycle. BeanFactory can be configured using either a configuration XML file or by programmatically which is the case with Spring Boot. It creates a unique identifier for each Bean in the application. BeanFactory is also called basic IOC, whereas ApplicationContext is called Advanced IOC. Although BeanFactory and ApplicationContext both are used to GET the beans from IOC container and inject them as per the configuration. Below are the significant differences in implementation:
|
|