awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Java Dependency Injection Libraries

排名更新于 2026年7月13日

For a dependency injection framework for Java, the strongest matches are google/guice (Guice is a comprehensive Java dependency injection framework that), spring-projects/spring-framework (Spring Framework is the industry-standard Java dependency injection container) and derekyrc/mini-spring (This is a lightweight Java dependency injection framework that). square/dagger and fuzhengwei/small-spring round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

我们为您精选了匹配 “best java dependency injection libraries” 的开源 GitHub 仓库。结果按与您查询的相关性进行排名 — 您可以使用下方筛选器缩小范围,或通过 AI 进行优化。

Java Dependency Injection Libraries

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • google/guicegoogle 的头像

    google/guice

    12,734在 GitHub 上查看↗

    Guice is a Java dependency injection framework and component container. It automates object wiring by mapping interfaces to implementations via a central injector, removing the need for manual factory patterns and constructor calls. The framework provides specialized support for aspect-oriented programming, allowing for the interception and modification of method execution to implement shared cross-cutting concerns. It also functions as a persistence manager to coordinate transaction boundaries and manage the lifecycle of entity managers within a dependency-injected environment. Its core cap

    Guice is a comprehensive Java dependency injection framework that provides a robust Inversion of Control container, full support for annotation-based configuration, and flexible constructor injection to manage object lifecycles.

    JavaAutomatic Constructor InjectionConstructor InjectionDependency Injection
    在 GitHub 上查看↗12,734
  • spring-projects/spring-frameworkspring-projects 的头像

    spring-projects/spring-framework

    60,056在 GitHub 上查看↗

    Spring Framework is an enterprise Java framework providing a comprehensive infrastructure for building server-side applications. It functions as a dependency injection container and a Java application framework designed to support scalable backend development through modular architecture. The project provides tools for aspect-oriented programming to intercept method calls using dynamic proxies, allowing the application of cross-cutting concerns such as security and transactions. It also includes a centralized system for managing object lifecycles and coordinating component wiring by injecting

    Spring Framework is the industry-standard Java dependency injection container that provides comprehensive support for annotation-based configuration, constructor injection, and robust lifecycle management.

    JavaAnnotation-Driven ConfigurationInversion-of-Control ContainersDependency Injection Containers
    在 GitHub 上查看↗60,056
  • derekyrc/mini-springDerekYRC 的头像

    DerekYRC/mini-spring

    6,360在 GitHub 上查看↗

    mini-spring is a Java dependency injection framework and inversion of control container. It manages the full lifecycle of beans, including instantiation, property population, and scope management, while providing a system for automating the wiring of components. The project implements a Java AOP framework that uses dynamic proxies to intercept method calls for cross-cutting logic. It also functions as a Java component scanner to automatically discover and register managed objects via annotations and as a Java event bus to decouple components through a publish-subscribe multicast system. The

    This is a lightweight Java dependency injection framework that provides an Inversion of Control container, annotation-based configuration, and lifecycle management for beans, directly addressing your requirements.

    JavaAnnotation-Driven ConfigurationInversion-of-Control ContainersDependency Injection
    在 GitHub 上查看↗6,360
  • square/daggersquare 的头像

    square/dagger

    7,281在 GitHub 上查看↗

    Dagger is a compile-time dependency injection framework for Java and Android that automates object creation and lifecycle management. It functions as a static dependency injector and graph validator, resolving object requirements during the build process to avoid runtime reflection and prevent crashes caused by missing bindings. The framework distinguishes itself by using static analysis and code generation to produce factory classes at build time. It employs qualifier-based type differentiation to manage multiple implementations of the same type and provides scope-based lifecycle management

    Dagger is a compile-time dependency injection framework for Java that provides an Inversion of Control container, supports constructor injection, and uses annotation-based configuration to manage object lifecycles without runtime reflection.

    JavaDependency InjectionDependency Injection
    在 GitHub 上查看↗7,281
  • fuzhengwei/small-springfuzhengwei 的头像

    fuzhengwei/small-spring

    4,899在 GitHub 上查看↗

    Small-Spring is a simplified Java implementation of the Spring framework designed to study the internal architecture of inversion of control containers and dependency injection frameworks. It functions as a bean container that manages object lifecycles and resolves dependencies through automated instantiation and property injection. The project implements a mechanism for intercepting method calls using dynamic proxies to support aspect-oriented programming. It separates cross-cutting concerns from business logic by wrapping target objects to modify method executions. The system covers compon

    Small-Spring is a simplified educational implementation of an Inversion of Control container that provides core dependency injection and bean lifecycle management, making it a functional, albeit minimalist, example of the requested category.

    JavaInversion-of-Control ContainersDependency InjectionDependency Injection Frameworks
    在 GitHub 上查看↗4,899
  • code4craft/tiny-springcode4craft 的头像

    code4craft/tiny-spring

    4,089在 GitHub 上查看↗

    tiny-spring is a Java inversion of control container and aspect-oriented programming framework. It provides a system for managing object lifecycles and dependency injection to decouple application components. The project features a bytecode proxy generator that enables method interception and behavioral modification for classes that do not implement interfaces. It uses pointcut expressions to match specific classes and methods for the execution of cross-cutting logic via dynamic proxies. The framework manages singleton components and resolves object dependencies using lazy initialization. Ap

    This is a lightweight Java inversion of control container that provides core dependency injection and lifecycle management, serving as a functional implementation of the requested design pattern.

    JavaInversion-of-Control ContainersDependency InjectionDependency Injection Containers
    在 GitHub 上查看↗4,089
  • roboguice/roboguiceroboguice 的头像

    roboguice/roboguice

    3,722在 GitHub 上查看↗

    RoboGuice is a dependency injection library based on Google Guice, specifically designed for Android applications. It functions as an annotation-processed dependency injection container that automates the delivery of system services and application dependencies into Android components to reduce boilerplate code. The project uses annotation processing to optimize application startup times and initialization. By utilizing compile-time bytecode generation, it reduces the overhead typically associated with runtime reflection during the initialization of the dependency container. The framework ma

    RoboGuice is a dependency injection framework built on Google Guice that provides annotation-based wiring and lifecycle management specifically tailored for the Android environment.

    JavaDependency InjectionDependency Injection
    在 GitHub 上查看↗3,722
  • spring-projects/spring-bootspring-projects 的头像

    spring-projects/spring-boot

    80,945在 GitHub 上查看↗

    Spring Boot is an opinionated application framework designed to streamline the creation of production-ready services. It functions as a comprehensive development platform that utilizes a centralized dependency injection container to manage object lifecycles and wiring. By employing convention-over-configuration, the framework automates the instantiation of components based on the presence of specific libraries and configuration properties, significantly reducing the need for manual setup. The framework distinguishes itself by bundling the application and its web server into a single, self-con

    Spring Boot is a comprehensive Java application framework that centers on a robust dependency injection container, providing full support for annotation-based configuration, constructor injection, and automated object lifecycle management.

    JavaGeneral Purpose FrameworksAuto-Configuration MechanismsDependency Injection Systems
    在 GitHub 上查看↗80,945
  • excilys/androidannotationsexcilys 的头像

    excilys/androidannotations

    10,981在 GitHub 上查看↗

    AndroidAnnotations is a boilerplate generator and component annotation library designed for Android development. It functions as a dependency injection framework that uses custom annotations to automate the wiring of activities, fragments, and services. The project focuses on reducing manual plumbing through the automation of Android boilerplate. It provides automated solutions for dependency injection and view binding, removing the need for repetitive calls to locate UI elements or manually write factory classes. The library covers activity lifecycle management and the generation of standar

    This library provides an annotation-based dependency injection framework specifically tailored for the Android ecosystem, automating object wiring and lifecycle management through compile-time code generation.

    JavaDependency Injection
    在 GitHub 上查看↗10,981
  • quarkusio/quarkusquarkusio 的头像

    quarkusio/quarkus

    15,479在 GitHub 上查看↗

    Quarkus is a Kubernetes-native Java framework designed for building high-performance, memory-efficient applications. It utilizes ahead-of-time native compilation to transform Java code into standalone, optimized binaries that eliminate the need for a virtual machine, enabling rapid startup and reduced memory consumption. By performing code augmentation during the build phase, it shifts heavy processing tasks away from runtime, ensuring that applications are optimized for cloud-native environments. The framework distinguishes itself through a unified approach to reactive and imperative program

    Quarkus is a full-stack Java framework that includes a robust, annotation-driven dependency injection container based on CDI, which performs dependency resolution at build time to optimize application startup and memory usage.

    JavaDependency Injection ProvidersDependency InjectionDependency Injection Containers
    在 GitHub 上查看↗15,479
一览前 10 名对比
仓库Star 数语言许可证最后推送
google/guice12.7KJavaApache-2.02026年5月21日
spring-projects/spring-framework60.1KJavaApache-2.02026年6月23日
derekyrc/mini-spring6.4KJavaApache-2.02026年6月21日
square/dagger7.3KJavaApache-2.02021年8月26日
fuzhengwei/small-spring4.9KJavaApache-2.02023年7月17日
code4craft/tiny-spring4.1KJavaApache-2.02023年11月27日
roboguice/roboguice3.7KJavaNOASSERTION2017年1月19日
spring-projects/spring-boot80.9KJavaApache-2.02026年6月15日
excilys/androidannotations11KJavaNOASSERTION2022年5月31日
quarkusio/quarkus15.5KJavaapache-2.02026年2月21日

Related searches

  • a dependency injection library for TypeScript
  • a dependency injection library for C#
  • a dependency injection container for PHP
  • Python 依赖注入容器
  • Go 服务依赖注入工具包
  • a lightweight framework for building Java web applications
  • Java 项目依赖管理与构建工具
  • a library for managing Java application configuration