Registry / dependency-injection / jsr250-api

jsr250-api

JSON →
library1.0javamavenunverified

Reference implementation of JSR-250 common annotations for the Java platform, including @Resource, @PostConstruct, and @PreDestroy.

<dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency>
INSTALL
IMPORT
SIG · JSR250-API
J
jsr250-api
dependency-injectionjavav1.0
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.

Resource
javax.annotation.Resource

Example using @Resource annotation for dependency injection

import javax.annotation.Resource; public class Example { @Resource private String myResource; public void useResource() { System.out.println(myResource); } }
Debug
Known issues
breakingJSR-250 annotations are deprecated in Java 9+; consider using jakarta.annotation instead.
fix
Replace javax.annotation with jakarta.annotation for Java EE 8+ compatibility.
affects: >=1.0
Upgrade
Version history
1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Resources
jsr250-api — mvn dependency:get jsr250-api · libregistry