Skip to content

Files

Latest commit

author
sososeen09
Nov 1, 2016
8df1d83 · Nov 1, 2016

History

History
This branch is 4 commits ahead of, 39 commits behind master.

dagger2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 1, 2016
Oct 26, 2016
Nov 1, 2016
Oct 26, 2016
Oct 26, 2016
  1. 纯粹的@Inject提供依赖
  2. 用@Module,@Provides提供依赖,需要@Component中采用modules把Module类加入。
  3. 用@Qualifier标识符@Named,同一个类,提供不同的对象。
  4. 自定义@Qualifier标识符。
  5. @Module和@Inject优先级
  6. 自定义@Scope,单例
  7. @SubComponent
  8. 组织Component
    1. 依赖dependences
    2. 采用@SubComponent
    3. 继承Component

#补充: 2016/11/1 10:19:31

  • Module中的provide方法含有参数
  • 在目标类中@Inject标注方法实现注入