Dagger2源码解析
2018-05-05 17:05:01 6 举报
Dagger2依赖注入源码解析
作者其他创作
大纲/内容
create(MainActivity.class)
Car : module.provideCar()
初始化
AndroidInjector
mainActivitySubComponentBuilderProvider
injectorFactories
AppComponent.Builder
继承
factory :MainActivitySubcomponentBuilder
inject(activity)
MainActivityModule_ProvideCarFactory
get(MainActivity.class)
injector :MainActivitySubcomponentImpl
(MainActivity.calss) car
Map(key:MainActivity.class;value: )
build()
factoryProvider : mainActivitySubComponentBuilderProvider
get()
return new MainActivityModule_ProvideCarFactory(module)
create(builder.mainActivityModule)
inject(DaggerApplication)
provideCarProvider
DispatchingAndroidInjector
DaggerAppComponent
收藏
0 条评论
回复 删除
下一页