Java Dependency Injection

Open-source Java projects categorized as Dependency Injection

Top 23 Java Dependency Injection Projects

Dependency Injection
  1. Dagger2

    A fast dependency injector for Android and Java.

    Project mention: Dependency Injection in Go: Comparing Wire, Dig, Fx & More | dev.to | 2025-02-05

    Dagger is a compile-time dependency injection tool widely used in Java and Kotlin. Although not officially supported in Go, some developers have experimented with using it.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. Guice

    Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.

    Project mention: Hexagonal Architecture/Ports And Adapters: Clarifying Key Concepts Using Go | dev.to | 2024-03-21

    Historically, Ports and Adapters was born in the context where Dependency Inversion Principle (DIP) was getting hot, back in the beginning of the 2000โ€™s. DIP was getting more present on development day to day, and an example of a framework that was a pioneer in such topic is Google Guice.

  4. Bootique

    Bootique is a minimally opinionated platform for modern runnable Java apps.

  5. Toothpick

    A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

  6. ActiveJ

    ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines core, web and high-load programming in Java, providing simplicity, maximum performance and scalability

  7. Governator

    Governator is a library of extensions and utilities that enhance Google Guice to provide: classpath scanning and automatic binding, lifecycle management, configuration to field mapping, field validation and parallelized object warmup.

  8. apk-dependency-graph

    Android class dependency visualizer. This tool helps to visualize the current state of the project.

  9. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrientโ€™s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  10. Weld

    Weld, including integrations for Servlet containers and Java SE, examples and documentation (by weld)

  11. Feather

    Lightweight dependency injection for Java and Android (JSR-330) (by zsoltherpai)

  12. avaje-inject

    Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"

  13. transfuse

    :syringe: Transfuse - A Dependency Injection and Integration framework for Google Android

  14. Apache DeltaSpike

    Mirror of Apache Deltaspike

  15. java-spring-best-practices

    A repository dedicated to showcasing best practices in Java and Spring through concise code snippets.

    Project mention: Mastering Input Validation in Java with Guard Clauses ๐Ÿš€ | dev.to | 2024-12-25

    ๐Ÿ”— Check out the repo for code samples and insights: https://github.com/agitrubard/java-spring-best-practices/tree/main/guardclause

  16. java-11-examples

    JDK 11 examples and demo projects.

  17. JayWire

    JayWire Dependency Injection

  18. EasyDI

    Easy Dependency Injection for Java (by manuel-mauky)

  19. spring-examples

    Starter projects with Spring using Java and Kotlin. Contains modules that covers Security with JWT, Spring with Kotlin, Dependency injection simplified etc.

  20. FlexiCore

    FlexiCore is a plugin based spring powered framework

  21. backbonefx

    Opinionated set of tools for creating JavaFX apps

  22. pouch

    Inversion of Control that's designed for ease of use and debugging (by cowwoc)

  23. colesico-framework

    Micro framework for creating server side applications in Java 17+

  24. mockito-object-injection

    Mockito Object Injection for JUnit5. Inject Strings and other Objects directly into Mocks without needing setters or constructor injection.

  25. Jvault

    ๐Ÿ’™ Java DI library for package encapsulation

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Java Dependency Injection discussion

Log in or Post with

Java Dependency Injection related posts

  • Hexagonal Architecture/Ports And Adapters: Clarifying Key Concepts Using Go

    1 project | dev.to | 21 Mar 2024
  • Inversion of Control Containers and the Dependency Injection Pattern (2004)

    2 projects | news.ycombinator.com | 21 Feb 2024
  • Dagger 2.49 (KSP, @AssistedInject with @HiltViewModel, more)

    1 project | /r/androiddev | 5 Dec 2023
  • Apt-based dependency injection for server-side developers

    1 project | news.ycombinator.com | 21 Nov 2023
  • Dagger 2.48 adds alpha KSP support

    1 project | news.ycombinator.com | 30 Aug 2023
  • Is dependency injection really a hard topic ? Or am i just dumb ?

    1 project | /r/androiddev | 10 Jul 2023
  • Avaje Inject - Microservice Focused DI via Annotation Processing

    2 projects | /r/java | 30 Jun 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Feb 2025
    SaaSHub helps you find the best software and product alternatives Learn more โ†’

Index

What are some of the best open-source Dependency Injection projects in Java? This list will help you:

# Project Stars
1 Dagger2 17,494
2 Guice 12,558
3 Bootique 1,414
4 Toothpick 1,124
5 ActiveJ 903
6 Governator 827
7 apk-dependency-graph 755
8 Weld 387
9 Feather 357
10 avaje-inject 251
11 transfuse 220
12 Apache DeltaSpike 151
13 java-spring-best-practices 104
14 java-11-examples 60
15 JayWire 57
16 EasyDI 52
17 spring-examples 37
18 FlexiCore 24
19 backbonefx 19
20 pouch 17
21 colesico-framework 15
22 mockito-object-injection 8
23 Jvault 5

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai