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
25460
5 天前

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

Java
14478
2 年前

Compile-time Dependency Injection for Go

Go
13620
9 个月前

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

TypeScript
11662
10 小时前
jonataslaw/getx

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

Dart
10724
20 天前

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

Kotlin
9369
4 天前
evrone/go-clean-template

Clean Architecture template for Golang services

Go
6735
2 天前

Dependency injection framework for Swift with iOS/macOS/Linux

Swift
6512
9 个月前
PHP
6450
5 天前

A dependency injection based application framework for Go.

Go
6396
18 天前

Lightweight dependency injection container for JavaScript/TypeScript

TypeScript
5387
3 天前
loopbackio/loopback-next

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

TypeScript
5004
13 小时前
C#
4556
10 小时前

Simple yet powerful dependency injection tool for JavaScript and TypeScript.

TypeScript
4140
4 天前

A reflection based dependency injection toolkit for Go.

Go
4111
25 天前
C#
3852
3 个月前