Skip to content

About

Dagger的使用

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

这个Demo基本介绍了Dagger2的使用

基本使用

  • 通过@Inject注解

  • 通过@Module和@Provides注解

详细的在这篇文章Dagger2基础使用

高级使用

  • 两种建立Component之间联系的方式。

    • @Component的Dependencies
    • @Subcomponent
  • 使用@Singleton

  • @Scope和@Singleton

  • @Qualifier(限定符)和@Named

详细的在这篇文章Dagger2高级使用

About

Dagger的使用

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages