Dependency Injection or Inversion of control means giving the control or task of injecting dependencies i.e object creation to the container. Instead of creating objects in code let container handle it for you.
In spring, you can have a normal xml file where you declare all your objects and services and which services are required by which object inside the xml. The Spring container will wire them and create those objects for you.
In spring, you can have a normal xml file where you declare all your objects and services and which services are required by which object inside the xml. The Spring container will wire them and create those objects for you.
No comments:
Post a Comment