Misplaced Pages

GlassFish HK2

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
HK2
Developer(s)Oracle Corporation
Stable release2.4.0
Repository
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.

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

References

  1. ^ "HK2 - Dependency Injection Kernel". javaee.github.io. Retrieved 2017-11-19.
GlassFish application server stack
Core
Web components
Web services
Tools
  • Hudson
  • Japex
  • OpenInstaller
  • IDE plugins
  • WS Monitor
  • License tools
Categories:
GlassFish HK2 Add topic