airhacks.fm podcast with adam bien

Just Another CDI Committer

Jan 19, 2025
Ladislav Thon, a CDI committer and contributor to Quarkus, dives into the evolution of Context and Dependency Injection in Java. He discusses the shift from XML to annotation-based dependency management and the significance of CDI Lite in version 4.0. Thon highlights differences between portable and build-compatible extensions, as well as performance implications of using CDI in Quarkus. He also touches on new features like lifecycle events and priority support, and the challenges of migrating extensions, providing a glimpse into the future of CDI.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Quarkus Bytecode Optimization

  • Quarkus optimizes CDI by generating bytecode for stereotypes at build time.
  • This approach minimizes runtime reflection for faster boot times.
INSIGHT

CDI Features

  • CDI offers producers to create custom beans, specializes to override beans, and decorators similar to interceptors.
  • Decorators, while supported in Quarkus, aren't part of CDI Lite.
INSIGHT

Decorators vs. Interceptors

  • Decorators involve subclass generation, while interceptors require reflection for the invocation context.
  • Quarkus supports both, but decorators are less common in CDI Lite.
Get the Snipd Podcast app to discover more snips from this episode
Get the app