GlassFish HK2 explained

HK2
Developer:Oracle Corporation
Latest Release Version:2.4.0
Operating System:Cross-platform
Language:Java 6 or Higher
Genre:Dependency Injection Kernel
License:CDDL version 1.0 and GPL v2 license
Website:https://javaee.github.io/hk2/

HK2 (Hundred-Kilobyte Kernel) is a light-weight and dynamic dependency injection framework and is a part of the GlassFish Application Server.

HK2 complies with JSR 330 (Dependency Injection for Java). It has useful utilities for marking classes as services and interfaces as contracts.[1]

Some of the features of HK2 DI Kernel are

Notes and References

  1. Web site: HK2 - Dependency Injection Kernel. javaee.github.io. en. 2017-11-19.