Dependency Injection by Config

In this chapter, we will be looking at dependency injection (DI) by config. Config injection is not a completely different method but an extension of both constructor injection and method injection.

It intends to address potential issues with those methods, such as excessive or repeated injected dependencies, without sacrificing the UX of our code.

The following topics will be covered in this chapter:

  • Config injection
  • Advantages of config injection
  • Applying config injection
  • Disadvantages of config injection
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.217.220