Software:GlassFish HK2

From HandWiki
Revision as of 05:19, 13 September 2021 by imported>AnLinks (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
HK2
Developer(s)Oracle Corporation
Stable release
2.4.0
Operating systemCross-platform
Available inJava 6 or Higher
TypeDependency Injection Kernel
LicenseCDDL version 1.0 and GPL v2 license
Websitehttps://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

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

References