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. Learn more →
Top 23 Java Dependency Injection Projects
-
Project mention: Dagger Python SDK: Develop Your CI/CD Pipelines as Code | news.ycombinator.com | 2022-11-10
Confusing. I initially thought someone ported the Dagger DI framework to Python: https://dagger.dev/
-
Guice
Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 8 and above, brought to you by Google.
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.
-
Project mention: Bootique: A minimally opinionated framework for runnable Java apps | news.ycombinator.com | 2022-07-09
-
-
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.
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 | news.ycombinator.com | 2022-10-03Any 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.
-
Its not as daunting as it sounds. You can get a complete JSR-330 implementation in only a few hundred lines.
-
-
-
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.
-
-
-
Project mention: Simple JavaFx Dependency Injection solution (no FXML) | reddit.com/r/JavaFX | 2022-07-02
I noticed some possible solutions like: https://github.com/manuel-mauky/EasyDI https://www.supernaut.app/SupernautFX/supernaut-user-guide.html https://github.com/torakiki/pdfsam-injector
-
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: Colesico-framework: Micro framework for creating server side applications in Java 17+ | reddit.com/r/java | 2022-09-08
-
Project mention: Show HN: KevaIoC: Lightweight Spring-Like Java IoC Framework | news.ycombinator.com | 2022-03-27
-
Project mention: Java DI library - Make the class available only to permitted classes. | reddit.com/r/programming | 2022-11-16
-
-
-
* https://github.com/cowwoc/pouch shows how I implement ServiceLocator. Any approach is fine, so long as you avoid making the locator a singleton.
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Java Dependency Injection related posts
- Java OSS with best code quality you’ve ever seen?
- Listening to test smells
- ᚣ the Rune Programming Language
- Ownership as explained in the Rust book
- Show HN: I finished v5 of a JVM framework I've spent spent half a decade making
- Why is Spring so slow in TechEmpower benchmark?
- Colesico-framework: Micro framework for creating server side applications in Java 17+
-
A note from our sponsor - Sonar
www.sonarsource.com | 1 Feb 2023
Index
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 |