Registry / dependency-injection / hk2
library1.6.9javamavenunverified

HK2 is a dependency injection framework for Java, implementing JSR-330.

<dependency> <groupId>com.sun.enterprise</groupId> <artifactId>hk2</artifactId> <version>1.6.9</version> </dependency>
INSTALL
IMPORT
SIG · HK2
H
hk2
dependency-injectionjavav1.6.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Service
org.jvnet.hk2.annotations.Service

Define a service with HK2 annotation.

import org.jvnet.hk2.annotations.Service; @Service public class MyService { public void doWork() {} }
Debug
Known issues
breakingHK2 1.6.9 is outdated; consider upgrading to 2.x for Jakarta EE support.
fix
Use org.glassfish.hk2:hk2:2.6.1 or later.
affects: <=1.6.9
Upgrade
Version history
1.6.9latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
Amazon
1
Resources