~/talk

The Wonders of Java Annotation Processing at Compile Time

TalkinRussianat Mobius 2017 Piter · 2017-04-21..04-22· [java, compilers-and-language-design]
links:none on file
slides:none on file

Coverage of compile-time Java annotation processing for Android development, focusing on libraries and frameworks that use it—Dagger 2, Lombok, ButterKnife—and comparing compile-time code generation with reflection and runtime generation. Explains benefits and drawbacks of compile-time processing and outlines how to build a custom library to generate boilerplate code during compilation.

AI-written summary · about

  1. 0:00Introduction
  2. 1:23Routine code problems
  3. 3:51Reflection limitations
  4. 8:32What is annotation processing
  5. 11:00How annotation processor works
  6. 14:54Example: automated registration
  7. 22:38Code generation with JavaPoet
  8. 30:55Processor multiple runs
  9. 34:29Dagger2 and annotation processing
  10. 37:22MapStruct data transformation
  11. 40:41Lombok modifying classes
  12. 45:01Other annotation processing tools
  13. 46:48Pros and cons
  14. 47:14Q&A
~/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.