Dagger2
avaje-inject
Our great sponsors
Dagger2 | avaje-inject | |
---|---|---|
50 | 19 | |
17,311 | 195 | |
0.3% | 4.6% | |
9.1 | 9.3 | |
3 days ago | 6 days ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Dagger2
- Dagger 2.49 (KSP, @AssistedInject with @HiltViewModel, more)
- Dagger 2.48 adds alpha KSP support
- Dagger KSP update & Breaking changes required to use Dagger KSP
-
Performance and memory impact of the @Singleton annotation in Dagger
There used to be a thing called "releasable references" which was that. It was removed, though: https://github.com/google/dagger/issues/1117
-
Dependency injection with AWS Lambdas in java
As said in the title, we will focus on the dependency inversion principle and one of its application : dependency injection. For production-ready applications, it would be better to rely on a framework and not implement its own container. For it, the java ecosystem have 3 frameworks available : Spring, Guice and Dagger.
-
Refactoring our Dependency Injection using Anvil
At Reddit, we use Dagger 2 for handling dependency injection (DI) in our Android application. As we’ve scaled the application over the years, we’ve accrued a bit of technical debt in how we have approached this problem.
-
Dagger Python SDK: Develop Your CI/CD Pipelines as Code
Confusing. I initially thought someone ported the Dagger DI framework to Python: https://dagger.dev/
-
Multiplatform dependency injection libraries equivalent to Dagger/Anvil
I'm currently using Dagger and Anvil for my DI needs. It's been working really well, especially around what Anvil permits in terms of multibindings defined on the type declaration rather than in a module. For example:
-
Dagger 2.43 released with support for multiple instances of the same ViewModel using keys 🎉
Great job, I have been waiting for this feature/fix for a long time https://github.com/google/dagger/issues/2328
-
Best libraries for Android Developers
Dagger
avaje-inject
- Apt-based dependency injection for server-side developers
-
Avaje Inject - Microservice Focused DI via Annotation Processing
Avaje Inject has quickly become one of my favorite libraries. Inject is basically like Dagger if Dagger was focused on server side instead of Android. It's a tiny lib (~76kb) that uses the power of annotation processing to generate DI classes. Recently I've been using it for AWS lambdas and it works pretty great.
-
I wrote a simple, compile-time dependency injection framework
https://avaje.io/inject/ - Implements JSR-330 and JSR-250
-
Dependency injection frameworks
Have you tried out Avaje inject? It's currently my favorite DI lib.
-
Java OSS with best code quality you’ve ever seen?
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.
-
Favorite hidden gem library?
Avaje is pretty cool, it's a compact DI library based on APT. https://github.com/avaje/avaje-inject
-
Why is Spring so slow in TechEmpower benchmark?
Like avaje inject ? DI as source code generation done at build time?
-
Dirk: a new light-weight system for dependency injection
Just to say, I also created a DI library called avaje-inject - https://avaje.io/inject/ ... which uses Java annotation processing to do DI as mostly source code generation. So the runtime dependency is ~ 67Kb. It also supports AOP aspects via source code gen which I think is kind of cool - you can have your own aspects like `@Retry` etc and it's actually done using source code generation.
-
Java SQL code generator. SQL and OOP united finally.
I am a bit fan of using annotation processing (source code generation) to simplify things - DI https://avaje.io/inject/ , JSON binding (https://github.com/avaje/avaje-jsonb) and rest servers and clients (https://avaje.io/http).
-
What is your experience with GraalVM Native?
Dagger2 and avaje-inject are other options (DI as source code generation via annotation processing). https://avaje.io/inject/
What are some alternatives?
Guice - Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.
auto-value
Toothpick - A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.
spring-examples - Starter projects with Spring using Java and Kotlin. Contains modules that covers Security with JWT, Spring with Kotlin, Dependency injection simplified etc.
Weld - Weld, including integrations for Servlet containers and Java SE, examples and documentation
Feather - Lightweight dependency injection for Java and Android (JSR-330)
butterknife - Bind Android views and callbacks to fields and methods.
dapper - modular dagger
HK2
quarkus-htmx-todos - Todo App in Quarkus with htmx
Dynamic CDI - Dynamic Context Dependency Injection
znai - Build functional, maintainable, beautiful User Guides with markdown and Znai plugins. Instant pages navigation. Local search. Multiple integrations to work with Python, Java, C++, OpenAPI, etc. Transform "getting started" sections into slideshow for your workshops. Manage multiple documentations with self-deployed znai hub.