Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spring Ioc And DI

Spring Ioc And DI

An easy example and few concept about IoC and DI

Balicanta

July 25, 2016

Transcript

8 slides
  1. IoC Concept • Invert - From ? to ? •

    Library and Framework Difference • Implement method : • Template Method • Dependance Injection * http://martinfowler.com/bliki/InversionOfControl.html
  2. Dependence Injection • Movie Finder Naive Example • Type of

    Dependence Injection • Type 1 IoC (interface injection) • Type 2 IoC (setter injection) • Type 3 IoC (constructor injection)
  3. Dependence Injection • Service Locator • Knows how to get

    hold of all of the services that an application might need. • Service Locator Example

More Decks by Balicanta

Other Decks in Technology