Repository navigation

#

依赖注入

Created by Martin Fowler

发布于 January 23, 2004

martinfowler.com
维基百科

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

The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio 🚀

Go
25554
3 天前

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

Java
14497
2 年前

Compile-time Dependency Injection for Go

Go
14182
1 年前

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

TypeScript
11884
3 小时前
jonataslaw/getx

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

Dart
10966
2 个月前

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

Kotlin
9606
1 个月前
evrone/go-clean-template

Clean Architecture template for Golang services

Go
7013
10 小时前

A dependency injection based application framework for Go.

Go
6791
3 个月前

Dependency injection framework for Swift with iOS/macOS/Linux

Swift
6596
2 天前
PHP
6588
16 小时前

Lightweight dependency injection container for JavaScript/TypeScript

TypeScript
5637
4 个月前
loopbackio/loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.

TypeScript
5041
26 分钟前
C#
4601
15 天前

A reflection based dependency injection toolkit for Go.

Go
4264
3 个月前

Simple yet powerful dependency injection tool for JavaScript and TypeScript.

TypeScript
4182
5 天前
C#
4055
2 个月前