How do we achieve dependency injection in Heldion SE?

1k Views Asked by At

The @Inject annotation works fine in Helidon MP application. However, I can't find @Inject for Helidon SE. How do we achieve dependency injection in SE?

1

There are 1 best solutions below

0
On BEST ANSWER

Helidon SE's philosophy is to give you full control of everything ("no magic"), so it does not intrinsically support dependency injection (this is a deliberate choice and a deliberate tradeoff). If you prefer the dependency injection style of programming, I recommend you use Helidon MP, which is, as a MicroProfile implementation, explicitly designed for it.