Tim Cooke wrote:Your summary of DI is roughly correct. Which also summarises IoC because DI and IoC are the same thing.
Pankaj Shet wrote:
If there are any dependancies which needs to be injected, like HttpServletRequest, HttpServletResponse in case of HttpServlet. These Object are created by the container and injected into the Servlet during lifecycle. Hence it is DI?
Service Locator Pattern,
Method Template Patterns
Container Component Archictures
Servlets, Filters or anything which has mabaged Lifecycles
are DI and IOC?
Pankaj Shet wrote:Juniper I guess you are correct: