Registry / dependency-injection / jakarta-annotation-api

jakarta-annotation-api

JSON →
library3.0.0javamavenunverified

Jakarta Annotations API defines common annotations for Java EE/Jakarta EE components, such as @Resource, @PostConstruct, and @PreDestroy.

<dependency> <groupId>jakarta.annotation</groupId> <artifactId>jakarta.annotation-api</artifactId> <version>3.0.0</version> </dependency>
INSTALL
IMPORT
SIG · JAKARTA-ANNOTATION
J
jakarta-annotation-api
dependency-injectionjavav3.0.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.

PostConstruct
jakarta.annotation.PostConstruct

Uses @PostConstruct annotation to mark an initialization method.

import jakarta.annotation.PostConstruct; public class Example { @PostConstruct public void init() { System.out.println("Initialized"); } }
Debug
Known issues
breakingJakarta Annotations API 3.x uses jakarta.annotation namespace; javax.annotation is deprecated.
fix
Replace javax.annotation imports with jakarta.annotation.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
39
OpenAI (training)
2
Resources
jakarta-annotation-api — mvn dependency:get jakarta-annotation-api · libregistry