~/talk

Annotation Preprocessing in Android

Talkat GDG DevFest Minsk 2016 · on Friday, 2016-11-25· [android, compilers-and-language-design]
links:none on file
slides:none on file

Annotation processing is presented as a way to generate classes at compile time to avoid reflection and runtime bytecode gen that slow Android startup (examples cite a ~700 ms delay). Concrete tools and libs: Dagger 2, Retrofit, MapStruct, Lombok use APT; JavaPoet builds source, Google AutoService registers processors, and compile-testing verifies output. Example: a factory annotation auto-generates an if‑chain factory class; caveats include multi‑round processing and brittle build-system integration, but generated code runs with native performance.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:08What is annotation processing
  3. 3:16Boilerplate code in development
  4. 5:31Reflection and code generation issues
  5. 7:46Why annotation processing for Android
  6. 9:37Annotation processor basics
  7. 13:38Creating a simple annotation processor
  8. 19:27Processing annotated elements
  9. 23:04Generating source files with JavaPoet
  10. 26:19Processing rounds and testing
  11. 27:47Frameworks using annotation processing
  12. 31:23Project Lombok deep dive
  13. 33:54Lombok features and benefits
  14. 34:39Custom frameworks with annotation processing
  15. 35:00Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.