Spring Core Container

By kssraju

Spring Core Container

  Is An IoC implementation which elminates the need for writing factory classes and methods in most of the cases

IoC is an archetecutral pattern which describes to have an external entity to  perform Dependancy Injection(DI)

Dependancy Injection:

 It is the process of pushing or injecting the dependancies into an Object

Understanding IoC : In OOP we find to divide system requirements into small units , implement them as Objects .Moreover we need to connect these Objects to complete the system. To do this we make an object depend on one or more objects.The objects on which this object depends are referred as dependancies for the object

How an object get its dependancies?

for this we generally use following 2 techniques

  1. create the dependancies: In this case we want to implement our object intelligent to create and prepare the dependancy(In simple we need to implement an object intelligent to instantiate and initialize its dependancies )

             This spproach casues the following problems

              code duplication

             difficult to manage the system

               

  1. pull the depandencies

One Response to “Spring Core Container”

  1. Spring Introduction « Kss Says:

    [...] 1. Core Container(IoC Container) [...]

Leave a Reply