Registry / dependency-injection / geronimo-jcdi-1-1-spec

geronimo-jcdi-1-1-spec

JSON →
library1.1javamavenunverified

Apache Geronimo implementation of the JSR-346 Context and Dependency Injection 1.1 & 1.2 Specification.

<dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jcdi_1.1_spec</artifactId> <version>1.1</version> </dependency>
INSTALL
IMPORT
SIG · GERONIMO-JCDI-1-1-
G
geronimo-jcdi-1-1-spec
dependency-injectionjavav1.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.

BeanManager
javax.enterprise.inject.spi.BeanManager

Looks up the CDI BeanManager from JNDI.

import javax.enterprise.inject.spi.BeanManager; import javax.naming.InitialContext; public class Example { public static void main(String[] args) throws Exception { BeanManager bm = (BeanManager) new InitialContext().lookup("java:comp/BeanManager"); System.out.println("BeanManager obtained: " + bm); } }
Debug
Known issues
gotchaThis is a specification API; you need a CDI implementation (e.g., Weld) at runtime.
fix
Add a CDI implementation dependency to your project.
affects: *
Upgrade
Version history
1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
38
OpenAI (training)
1
Resources
geronimo-jcdi-1-1-spec — mvn dependency:get geronimo-jcdi-1-1-spec · libregistry