HK2 is a light-weight and dynamic dependency injection framework for Java.
I have a jersey-2 / hk2 application which uses JPA persistence. The EntityManager is bound at startup like this public MyApplication() { // ... …
java jpa dependency-injection jersey-2.0 hk2In HK2 the basic example code for configuring injection is this (within a class that extends AbstractBinder: bind(BuilderHelper .link(…
java dependency-injection hk2