From the course: Spring: Design Patterns

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Inversion of Control: The core pattern

Inversion of Control: The core pattern

From the course: Spring: Design Patterns

Start my 1-month free trial

Inversion of Control: The core pattern

- [Lecturer] As I mention, the Inversion of Control pattern is a core pattern in the Spring Framework. And in my opinion, is the core pattern for for all of Spring's operational behavior. Now, let's talk a little bit about what IoC is. As I alluded to before, it is not a Gang of Four design pattern. But nonetheless, this is architectural pattern for relegating control of dependencies to the container instead of the developer having to be responsible for the construction of those dependencies. Now, often this is called Dependency Injection, though, that is only one flavor of IoC. Now, I tend to make that mistake and call IoC and Dependency injection the same thing, and that's just natural, because from a Spring Framework perspective, Dependency Injection is one of the primary benefits of using the IoC pattern. And next to one of most develpers actually interact with on a regular basis. Now, let's talk a little bit about how it works. A central container constructs and maintains all…

Contents