Java Dependency Injection

Open-source Java projects categorized as Dependency Injection

Top 23 Java Dependency Injection Projects

  • Dagger2

    A fast dependency injector for Android and Java.

    Project mention: Dagger Python SDK: Develop Your CI/CD Pipelines as Code | | 2022-11-10

    Confusing. I initially thought someone ported the Dagger DI framework to Python:

  • Guice

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

    Project mention: Listening to test smells | | 2023-01-02

    We might create this singleton, for instance, by using a dependency injection framework like Guice and its @Singleton annotation.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • Bootique

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

    Project mention: Bootique: A minimally opinionated framework for runnable Java apps | | 2022-07-09
  • Toothpick

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

  • 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.

  • apk-dependency-graph

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

    Project mention: Source code visualisation tool | | 2023-01-04

    Not sure if this does everything you need, but I have used apk-dependency-graph that can show you a graph of classes.

  • 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

  • Sonar

    Write Clean Java Code. Always.. Sonar helps you commit clean code every time. With over 600 unique rules to find Java bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • Weld

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

    Project mention: Show HN: I finished v5 of a JVM framework I've spent spent half a decade making | | 2022-10-03

    Any DI lib would probably work, it depends on your preferences and use cases though.

    I'm personally a fan of Weld since its the reference implementation of the CDI spec.

  • Feather

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

    Project mention: Books for more advanced Java developers? | | 2022-08-11

    Its not as daunting as it sounds. You can get a complete JSR-330 implementation in only a few hundred lines.

  • transfuse

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

  • Apache DeltaSpike

    Mirror of Apache Deltaspike

  • avaje-inject

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

    Project mention: Java OSS with best code quality you’ve ever seen? | | 2023-01-14

    Been building a web service with avaje inject and avaje http lately. It has a very spring-like feel for a DI lib, (Lifecycles, Test annotations) but the libs are tiny and totally reflection free through codegen.

  • JayWire

    JayWire Dependency Injection

  • java-11-examples

    JDK 11 examples and demo projects.

  • EasyDI

    Easy Dependency Injection for Java (by manuel-mauky)

    Project mention: Simple JavaFx Dependency Injection solution (no FXML) | | 2022-07-02

    I noticed some possible solutions like:

  • spring-examples

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

  • colesico-framework

    Micro framework for creating server side applications in Java 17+

    Project mention: Colesico-framework: Micro framework for creating server side applications in Java 17+ | | 2022-09-08
  • keva-ioc

    Fast, lightweight, Spring like, annotation driven IoC framework

    Project mention: Show HN: KevaIoC: Lightweight Spring-Like Java IoC Framework | | 2022-03-27
  • Jvault

    💙 Java DI library for package encapsulation

    Project mention: Java DI library - Make the class available only to permitted classes. | | 2022-11-16
  • dapper

    modular dagger (by jbock-java)

  • android-ghostfish

    Dependency injection container for Android

  • pouch

    A Java library for implementing the Service Locator design pattern. (by cowwoc)

    Project mention: Micronaut vs others(Spring Boot, Quarkus and co.) | | 2022-11-10

    * shows how I implement ServiceLocator. Any approach is fine, so long as you avoid making the locator a singleton.

  • simple-component

    Project mention: I made a dependency injector | | 2023-01-30
  • SaaSHub

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

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). The latest post mention was on 2023-01-30.

Java Dependency Injection related posts


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

Project Stars
1 Dagger2 16,929
2 Guice 11,738
3 Bootique 1,388
4 Toothpick 1,110
5 Governator 810
6 apk-dependency-graph 720
7 ActiveJ 597
8 Weld 347
9 Feather 340
10 transfuse 223
11 Apache DeltaSpike 142
12 avaje-inject 125
13 JayWire 52
14 java-11-examples 52
15 EasyDI 47
16 spring-examples 33
17 colesico-framework 13
18 keva-ioc 6
19 Jvault 4
20 dapper 3
21 android-ghostfish 3
22 pouch 1
23 simple-component 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives