But we normally prefer an API-less injection style.
但通常我们宁愿使用API尽量少的注入风格。
Dependency injection in the Spring style is fine.
Spring风格的依赖注射就很好。
Fortunately, Martin Fowler has come to the rescue and, in collaboration with several framework builders, named this style of decoupling dependency injection.
幸运的是,Martin Fowler已经站出来解决这个问题,他与多个框架的构建者合作,把这种形式的解耦命名为依赖注入。
应用推荐