You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HK2 is a dependency injection framework used in Jersey 2. This pice of code demonstrate how to add custom bindings.
HK2
Jersey 2 uses HK2 as dependency injection framework.
Although there are modules for integrating with Guice or Spring.
We can still just use HK2 to avoid using two frameworks for the same purposes.
Following snippets are two very basic sample for using HK2.