~/talk

Guice: Why lightweight dependency injection frameworks are not enough

Talkat Voxxed Days CERN 2025 · on Wednesday, 2025-01-15· [java]
links:none on file
slides:none on file

Attempting Guice for a simple web app produces concrete tradeoffs: you end up writing 50 lines of Tomcat config because there are no useful defaults, GitHub docs are stale, and dependency annotations collide — Jakarta vs Guice @Inject mismatch breaks component scanning. Connecting HTTP needs Jersey plus an HK2 adapter between Guice and Jersey that is undocumented, OpenAPI must be generated and scrubbed programmatically, logging frameworks often fail and JUnit needs custom extensions to run integration tests. The framework works only after stitching many hacks.

AI-written summary · about

  1. 0:00Guice introduction
  2. 1:30Spring vs Guice
  3. 2:59Guice setup challenges
  4. 4:05Tomcat with Guice
  5. 5:09Lack of documentation and broken examples
  6. 6:09Jakarta vs Guice
  7. 7:12Guice with Jersey
  8. 8:37Swagger in Guice
  9. 10:02Guice logging
  10. 11:11Testing Guice
  11. 13:24Lessons learned and project abandonment
~/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.