Java Dependency Injection

Open-source Java projects categorized as Dependency Injection | Edit details

Top 14 Java Dependency Injection Projects

  • GitHub repo Dagger2

    A fast dependency injector for Android and Java.

    Project mention: Kotlin 1.5.20 Released | | 2021-06-26

    Note, that this version breaks Hilt code processing. dagger GitHub issue

  • GitHub repo Guice

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

    Project mention: Does anybody has a recommended resource about Dependency Injection? | | 2021-07-07
  • GitHub repo Bootique

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

    Project mention: Ask HN: What's your Go-to web stack for Java? | | 2021-06-22

    I really like Bootique as an alternative to Spring Boot:

    For higher loads I pick Vert.x.

    Other than that, it's almost always 3 J's: Jetty, Jersey, Jackson.

  • GitHub repo Toothpick

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

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

  • GitHub repo Weld

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

  • GitHub repo Feather

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

  • GitHub repo ActiveJ

    ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines web, high load, and cloud programming in Java, featuring ultimate performance and scalability!

    Project mention: ActiveInject. Fast and Lightweight Dependency Injection Library | | 2020-10-19

    Scope creates “local singletons” which live as long as the scope itself. ActiveInject scopes are a bit different from other DI libraries. The internal structure of the Injector is a prefix tree and the prefix is a scope. If you create an Injector that is set to a particular scope, it means that Injector enters this scope. This can be done several times, so that there are multiple injectors in a single scope.

  • GitHub repo transfuse

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

  • GitHub repo Apache DeltaSpike

    Mirror of Apache Deltaspike

  • GitHub repo JayWire

    JayWire Dependency Injection

  • GitHub repo java-11-examples

    JDK 11 examples and demo projects.

    Project mention: How to publish a Gradle project to OSSRH. | | 2021-02-05

    Yet another example for Gradle

  • GitHub repo spring-examples

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

    Project mention: Java Question | | 2020-12-30
  • GitHub repo android-ghostfish

    Dependency injection container for Android

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 2021-07-07.


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

Project Stars
1 Dagger2 16,147
2 Guice 10,290
3 Bootique 1,342
4 Toothpick 1,075
5 Governator 794
6 Weld 334
7 Feather 322
8 ActiveJ 246
9 transfuse 226
10 Apache DeltaSpike 132
11 JayWire 48
12 java-11-examples 47
13 spring-examples 32
14 android-ghostfish 3