Skip to main content

Posts

Showing posts with the label SPRING

Spring : Core (IOC Container)

First we will understand what is IOC- Inversion of Control, The concept of IOC deals with Object Creation, Dependency Satisfaction & Life Cycle Management. The concept states that application programmers must only be concern with the use of Objects, they shouldn’t be concern with their creation and life cycle management. Application programmers should delegate these responsibilities to a Runtime Environment called IOC Container. Conventionally application programmers waste more than 50% of their efforts in object creation & their management as we can describe this situation by the following example. Let's there be two classes named A & B. Class A has a dependency on Class B i.e. an Object of Class B is required by an Object of Class A to Perform its task. The conventional approach does this thing as. 1. Application need an Object of Class A. 2. Object of Class A is created let ObjA. 3. Object of B class is created let ObjB. 4. Reference of ObjB is provided to ObjA. 5. O...