HK2 DI Kernel

From Wikipedia, the free encyclopedia
Jump to: navigation, search
HK2
Developer(s) Oracle Corporation
Stable release 2.2.0
Operating system Cross-platform
Available in Java 6 or Higher
Type Dependency Injection Kernel
License CDDL version 1.0 and GPL v2 license
Website https://hk2.java.net/2.2.0-b17/

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

HK2 is JSR-330 compliant and has useful utilities for marking classes as services and interfaces as contracts.[1]

Some of the features of HK2 DI Kernel are

  • Custom scopes
  • use of proxies
  • Custom injection resolution
  • Assisted injection
  • J-I-T injection resolution
  • Custom validation and security
  • Run Level Services[2]

References[edit]