~/talk

Dagger 2 - Back to Basics

TalkinFrenchat Droidcon Paris 2015 · 2015-11-09..11-10· [android]
slides:none on file

Dagger 2 shifts dependency injection to compile-time by generating readable factories and providers via annotation processing. The talk walks through wiring a small Android app with modules, components and @Provides, shows that missing bindings fail at compile time, explains scopes as lifetimes (application, activity, user) including singletons, and covers testing tradeoffs and workarounds such as build-variant replacement with a working end-to-end example.

AI-written summary · about

  1. 0:00Start
  2. 1:58Dependency Injection
  3. 2:43Why?
  4. 4:01Problems
  5. 5:24Requirements
  6. 7:42Summary
  7. 8:53Dagger 2
  8. 10:253 Forms of Injection
  9. 10:39Constructor Injection
  10. 11:16Field Injection
  11. 28:05Scope - Example
  12. 31:21Scope - Conclusion
  13. 34:24Tests - Dagger
  14. 34:58Unit Tests
  15. 35:48Functional Tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.