~/talk

Annotation Processing in Android

Talkat DroidKaigi 2016 · 2016-02-18..02-19· [android]
speakerdeck:emanuelez
slides:none on file

Explains how Java compile‑time annotation processing (JSR 269) actually works: use AbstractProcessor with ProcessingEnvironment and RoundEnvironment, generate source via JavaPoet, package the processor in META-INF/services, and split annotations and processor into plain Java Gradle modules (use apt) to run on Android. Tests are hard but Google’s compiled-testing + Truth lets you assert generated sources compile. Covers Gradle javadoc quirks, warns about multiple processing rounds, and cites real users: Butter Knife, Dagger(2), Parceler and Realm, which generates many proxies successfully.

AI-written summary · about

  1. 0:00Intro
  2. 0:58Annotations
  3. 11:42Generating Code
  4. 16:56Android
~/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.