Advertisement #Header

6 Jul 2014

Why Use Spring Framework?

  1. Dependency Injection
  2. Coding to Interface
  3. Aspect Oriented Programming

 What is Dependency Injection?

Dependency Injection is used to decouple the dependence between the objects within a class and to provide the dependency (i.e. instantiation, initialization) from outside configuration to the class.

Factory Design Pattern is used in Spring Framework.  Means instead of directly instantiating an object, we ask the particular Object Factory to manage (create, maintain lifecycle, destroy) the object and pass to us a reference of the object.

Spring uses:
1. BeanFactory
2. ApplicationContext

No comments:

Post a Comment