- Inversion of control is the one application doesn’t control the object and the spring container takes the control of object
Bean Factory
- This is the root interface for accessing the spring container
- A bean factory is like a factory class that contains a collection of beans
- The bean factory holds the bean definitions of the multiple beans within itself and then instantiates the bean whenever asked by the clients
- The beanfactory is the actual container which instantiates, configures and manages a number of beans
- These beans typically collaborate with one another and thus have the dependencies between themselves.
Application context
- Bean instantiation and wiring of beans
- It’s the central interface within the spring application that is used for providing configuration information to the application
- It implements the bean factory interface
- Application Event publication
- It uses eager loading, so every bean instantiate after the ApplicationContext is started up.
No comments:
Post a Comment