Spring Framework :
LightWeight Framework focuses on loose coupling.
Addresses the problem of complexity of enterprise application.
Advantages :
- Layered Architecture
- IOC and Dependency Injection
- Open Source no license is require
-
-
- Features :
- Light Weight
- IOC, Life cycle of bean managed by framework
- MVC framework
- Transaction Management and Database
Spring IOC :
Creates Object , wires them together, Configure them, Manage lifecycle and Uses Dependency Injection to manage components.
Types of Injections :
- Constructor Injection
- Setter Injection
Difference between Constructor and Setter Injections
--> Check
Bean Factory :
Uses Lazy Initialization , Explicitly provided resource object using syntax, Doenst support internalization, No support for annotation
Application Factory :
Uses Eager initialization, creates and manages own resources, Supports internalization and supports annotation for annotation
Difference between Bean Factory and Application Context
--> check
Advantages of Spring :
Minimises amount of coding, makes application to test easy, Loose coupling and IOC supports eager initialization
Spring Beans : Nothing but java Object
Types of Scopes :
Singleton and Prototype
Life cycle of Spring Bean
--> Check
Inner Beans
Bean Wiring
Auto Wiring
@Qualifier Example