![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Dagger2 使用说明书
玛斯特・布兰迪
学习、记录、分享、交流
展开
-
Dagger 2 系列(一) -- 前奏篇:依赖注入的基本介绍
不久前自己曾研究过Dagger2,但是觉得比较晦涩,再加上项目中没有运用到,就没有继续看下去。但近日发现 MVP + Retrofit + Rxjava + Dagger2 的 andoroid 项目框架如此流行,觉得应接着搞一波了。该系列博客的最终目标: 搭建 MVP + Dagger2 框架该系列博客包含以下几篇内容: Dagger 2 系列(一) – 前奏篇:基本概念...原创 2018-06-04 17:43:11 · 1775 阅读 · 0 评论 -
Dagger 2 系列(二) -- 基础篇:@Inject、@Component
该系列博客的最终目标: 搭建 MVP + Dagger2 框架该系列博客包含以下几篇内容: Dagger 2 系列(一) – 前奏篇:基本概念介绍Dagger 2 系列(二) – 基础篇:基本功能的实现Dagger 2 系列(三) – 基础篇:@Module 和@Provides在这篇文章中你会看到什么: 1. @Inject 是什么 2. @Component 是...原创 2018-05-31 19:21:18 · 2934 阅读 · 0 评论 -
Dagger 2 系列(三) -- 基础篇:@Module 和 @Provides
该系列博客的最终目标: 搭建 MVP + Dagger2 框架该系列博客包含以下几篇内容: Dagger 2 系列(一) – 前奏篇:基本概念介绍Dagger 2 系列(二) – 基础篇:基本功能的实现Dagger 2 系列(三) – 基础篇:@Module 和@Provides在这篇文章中你会看到什么: 1. @Inject 是什么 2. @Component 是...原创 2018-05-31 19:22:12 · 3074 阅读 · 0 评论 -
Dagger 2 系列(四) -- 基础篇:@Named 和 @Qualifier
代付原创 2018-09-18 19:15:36 · 2291 阅读 · 0 评论 -
Dagger 2 系列(六) -- 进阶篇:Component 依赖、@SubComponent 与多 Component 下的 Scope 使用限制
Dagger 2 系列(五) – 进阶篇:Component 依赖管理In general we have two ways to do this - with @Subcomponent annotation or with Components dependencies. The main difference between them is an objects graph sharin...原创 2018-09-25 17:02:19 · 1911 阅读 · 0 评论 -
Dagger 2 系列(五) -- 进阶篇:@Scope 和 @Singleton
Dagger 2 系列(五) – 进阶篇:@Scope 和 @SingletonAnnotated dependencies are single-instances but related to component lifecycle (not the whole application).In Dagger 2 scopes mechanism cares about keepin...原创 2018-09-21 15:39:33 · 2017 阅读 · 0 评论