~/talk

Behind the Annotations

Talkat jProfessionals Plovdiv 2023 · on Saturday, 2023-04-01· [java, testing]
links:none on file
slides:none on file

Shows how annotations are implemented and used to do real work not just document code including a compile time annotation processor that rejects non final mutable classes by inspecting elements and modifiers and a runtime TestExecutionListener that uses reflection to create random entities, save them to a Spring repository, and clean up after tests. Covers retention policies, repeatable and composite annotations, using Javax Filer to generate files, and Google auto-service to register processors. Demonstrations compile and the tests run but author warns against overuse.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 4:13What are Java annotations
  3. 10:51Demo of simple annotations
  4. 16:41How annotations work under the hood
  5. 21:04Compile-time annotation processing
  6. 25:40Generating code with annotations
  7. 28:13Runtime annotations in testing
  8. 32:00When to use annotations
  9. 33:47Closing remarks 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.