Saturday, April 1, 2017

What is Dependence Injection in Spring

         What is Dependence Injection ?

è The process of injecting the dependence into dependent obj.

è If underlying server/container/framework/runtime(like JRE) assigns values to resources /class/objs dynamically at run time then it is called Dependency Injection .

è If underlying server or container dynamically assigns the dependent values to out resource (class/objects) then it is called DI.

Types of DI:-

a)      Setter Injection
b)     Constructor Injection
c)      Interface Injection
d)     Method Injection

e)      Lookup Method Injection 

No comments:

Post a Comment