concept layer in category dependency injection

appears as: layer, layer, layers, layers
Dependency Injection

This is an excerpt from Manning's book Dependency Injection.

In object-oriented software design, a module is a group of logically related classes (or components), where a module is independent of and interchangeable with other modules. Typically, you’ll see that a layer consists of one or more modules.

  • The Composition Root takes a direct dependency on all other modules in the system. Loosely coupled code that applies the Composition Root pattern lowers the overall number of dependencies between modules, subsystems, and layers, compared to tightly coupled code.
  • Even though you might place the Composition Root in the same assembly as your UI or presentation layer, the Composition Root isn’t part of those layers. Assemblies are deployment artifacts, whereas layers are logical artifacts.