#

依赖注入

Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.

There are different types of dependency injection:

kataras/iris
https://static.github-zh.com/github_avatars/kataras?size=40

#Web框架#Iris 是基于 Go 编写的一个快速,简单但功能齐全、高效的 Web 框架。

Go 25.58 k
21 小时前
https://static.github-zh.com/github_avatars/alibaba?size=40

#安卓#💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)

Java 14.49 k
2 年前
https://static.github-zh.com/github_avatars/google?size=40

一个编译时的Go语言依赖注入框架

Go 14.23 k
1 个月前
inversify/InversifyJS
https://static.github-zh.com/github_avatars/inversify?size=40

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

TypeScript 11.94 k
1 天前
jonataslaw/getx
https://static.github-zh.com/github_avatars/jonataslaw?size=40

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.

Dart 11 k
3 个月前
https://static.github-zh.com/github_avatars/InsertKoinIO?size=40

#安卓#Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform

Kotlin 9.66 k
7 天前
https://static.github-zh.com/github_avatars/uber-go?size=40

A dependency injection based application framework for Go.

Go 6.87 k
4 天前
https://static.github-zh.com/github_avatars/hyperf?size=40

Hyperf 是一个高性能、高灵活性的渐进式 PHP 协程框架,内置协程服务器及大量常用的组件,性能较传统基于 PHP-FPM 的框架有质的提升,提供超高性能的同时,也保持着极其灵活的可扩展性,标准组件均基于 PSR 标准 实现,基于强大的依赖注入设计,保证了绝大部分组件或类都是 可替换 与 可复用 的。

PHP 6.63 k
7 天前
https://static.github-zh.com/github_avatars/Swinject?size=40

#IOS#Dependency injection framework for Swift with iOS/macOS/Linux

Swift 6.63 k
16 天前
https://static.github-zh.com/github_avatars/microsoft?size=40

Lightweight dependency injection container for JavaScript/TypeScript

TypeScript 5.68 k
5 个月前
loopbackio/loopback-next
https://static.github-zh.com/github_avatars/loopbackio?size=40
TypeScript 5.06 k
1 天前
https://static.github-zh.com/github_avatars/autofac?size=40
C# 4.61 k
1 个月前
https://static.github-zh.com/github_avatars/uber-go?size=40

A reflection based dependency injection toolkit for Go.

Go 4.31 k
4 个月前
https://static.github-zh.com/github_avatars/typestack?size=40

Simple yet powerful dependency injection tool for JavaScript and TypeScript.

TypeScript 4.19 k
1 天前
https://static.github-zh.com/github_avatars/khellang?size=40
C# 4.09 k
6 天前
loading...

Created by Martin Fowler

发布于 January 23, 2004

Website
martinfowler.com
Wikipedia
维基百科