Registry / dependency-injection / hk2-locator

hk2-locator

JSON →
library4.0.1javamavenunverified

HK2 Locator is the default implementation of the ServiceLocator for the HK2 dependency injection framework.

<dependency> <groupId>org.glassfish.hk2</groupId> <artifactId>hk2-locator</artifactId> <version>4.0.1</version> </dependency>
INSTALL
IMPORT
SIG · HK2-LOCATOR
H
hk2-locator
dependency-injectionjavav4.0.1
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.

ServiceLocator
org.glassfish.hk2.api.ServiceLocator

Creates and populates a default HK2 ServiceLocator.

import org.glassfish.hk2.api.ServiceLocator; import org.glassfish.hk2.utilities.ServiceLocatorUtilities; public class Example { public static void main(String[] args) { ServiceLocator locator = ServiceLocatorUtilities.createAndPopulateServiceLocator(); System.out.println("ServiceLocator created: " + locator); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
OpenAI (training)
1
Resources
hk2-locator — mvn dependency:get hk2-locator · libregistry