Ways of achieving inversion of control

What are the different ways we can achieve inversion of control ? I know we can achieve ioc through dependency injection. Could someone please list other ways and technique of achieving ioc?


I found https://www.sitepoint.com/three-design-patterns-that-use-inversion-of-control/

Implementing Inversion of Control

  • IoC through Dependency Injection
  • IoC through the Observer Pattern
  • IoC through the Template Method Pattern
  • 链接地址: http://www.djcxy.com/p/30218.html

    上一篇: 工厂和抽象工厂模式之间的基本区别是什么?

    下一篇: 实现控制反转的方法