Registry / dependency-injection / org-openide-util-lookup

org-openide-util-lookup

JSON →
libraryRELEASE290javamavenunverified

Apache NetBeans OpenIDE Utilities Lookup provides a service lookup mechanism for modular applications.

<dependency> <groupId>org.netbeans.api</groupId> <artifactId>org-openide-util-lookup</artifactId> <version>RELEASE290</version> </dependency>
INSTALL
IMPORT
SIG · ORG-OPENIDE-UTIL-L
O
org-openide-util-lookup
dependency-injectionjavavRELEASE290
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.

Lookup
org.openide.util.Lookup

Basic Lookup usage with InstanceContent.

import org.openide.util.Lookup; import org.openide.util.lookup.AbstractLookup; import org.openide.util.lookup.InstanceContent; public class Quickstart { public static void main(String[] args) { InstanceContent content = new InstanceContent(); Lookup lookup = new AbstractLookup(content); content.add("Hello"); String result = lookup.lookup(String.class); System.out.println(result); } }
Debug
Known issues
gotchaThis API is specific to NetBeans platform; not suitable for general Java applications.
fix
Use a standard dependency injection framework like Spring or Guice if not building a NetBeans module.
affects: *
Upgrade
Version history
RELEASE290latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
org-openide-util-lookup — mvn dependency:get org-openide-util-lookup · libregistry