Thursday, 6 October 2022

Dagger 2 tutorial

Dagger is a dependency injection framework written in Java, to ease the creation of reusable and interchangeable modules.

 

Unlike other frameworks (Like Spring, Google Guice) which rely on runtime reflection and proxies, Dagger is a fully static, compile-time dependency injection framework. Dagger uses the compile time data to implement dependency injection.

 

Following dependency is used for this tutorial.

<dependency>
	<groupId>com.google.dagger</groupId>
	<artifactId>dagger</artifactId>
	<version>2.4.4</version>
</dependency>

 

       Dagger 2 : hello world application
      How to configure Java Annotation Processor in Eclipse?

 

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment