Dagger is a fully static, compile-time dependency injection framework for Java, Kotlin, and Android. It is an adaptation of an earlier version created by Square and now maintained by Google. The latest Dagger release is: Dagger 2.33. Dagger aims to address many of the development and performance issues that have plagued reflection-based solutions. Dagger is a replacement for the FactoryFactory classes that implements the dependency injection design pattern without the burden of writing the boilerplate. It allows you to focus on the interesting classes. Declare dependencies, specify how to satisfy them, and ship your app. Dependency injection frameworks have existed for years with a whole variety of APIs for configuring and injecting. So, why reinvent the wheel? Dagger 2 is the first to implement the full stack with generated code. The guiding principle is to generate code that mimics the code that a user might have hand-written to ensure that dependency injection is simple.

Features

  • Simple, traceable and performant dependency injection
  • Dagger constructs instances of your application classes and satisfies their dependencies
  • Dagger can inject fields directly
  • Dagger also supports method injection
  • Dagger associates scoped instances in the graph with instances of component implementations
  • Components may have multiple scope annotations applied

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Dagger

Dagger Web Site

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Dagger!

Additional Project Details

Operating Systems

Android

Programming Language

Java

Related Categories

Java Build Tools, Java Frameworks

Registered

2021-03-23