错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Services and Dependency Injection

  • Peter Himschoot

摘要

_Dependency Inversion_ is one of the basic principles of good _Object-Oriented Design_. The big enabler is _Dependency Injection_. In this chapter, we will discuss dependency inversion and injection and why it is a fundamental part of Blazer. We will illustrate this by building a _Service_ that encapsulates where the data gets retrieved and stored.