Top "Hk2" questions

HK2 is a light-weight and dynamic dependency injection framework for Java.

How do I properly configure an EntityManager in a jersey / hk2 application?

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 hk2
How do I configure HK2 to inject an object created by a factory method?

In HK2 the basic example code for configuring injection is this (within a class that extends AbstractBinder: bind(BuilderHelper .link(…

java dependency-injection hk2