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
- 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
- pull the depandencies
May 13, 2009 at 8:26 am |
[...] 1. Core Container(IoC Container) [...]