

Injection Without Reflection
4 snips Jun 7, 2025
In this conversation, David Kral, a software engineer and Helidon contributor, dives into the innovative features of Helidon SE. He discusses build-time dependency injection, eliminating reflection for enhanced performance. Kral explains the use of code generation for better debugging and ownership, plus the perks of using standard JSR-330 annotations for portability. He also covers compatibility with GraalVM, the value of a customizable service registry, and the exciting future of Helidon Declarative, set for a full release.
AI Snips
Chapters
Transcript
Episode notes
Helidon Declarative's Key Innovation
- Helidon Declarative enhances Helidon SE with build-time dependency injection without reflection.
- It generates concrete Java sources, improving performance and debugging over runtime reflection.
Source Code Generation Advantage
- Helidon generates Java source files, not bytecode like Lombok, allowing easy inspection and modification.
- This real source code aids debugging and transparency in Helidon Declarative.
Use Maven Plugin for Zero Reflection
- Use Maven annotation processors or Helidon plugin to generate sources placed in the standard generated-sources directory.
- Always use the plugin to achieve zero reflection during runtime service loading.