Registry / dependency-injection / jboss-annotations-api-1-2-spec

jboss-annotations-api-1-2-spec

JSON →
library1.0.2.Finaljavamavenunverified

JSR 250: Common Annotations for the Java Platform provides annotations like @Resource, @PostConstruct, etc.

<dependency> <groupId>org.jboss.spec.javax.annotation</groupId> <artifactId>jboss-annotations-api_1.2_spec</artifactId> <version>1.0.2.Final</version> </dependency>
INSTALL
IMPORT
SIG · JBOSS-ANNOTATIONS-
J
jboss-annotations-api-1-2-spec
dependency-injectionjavav1.0.2.Final
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

Minimal usage of @Resource annotation for dependency injection.

import javax.annotation.Resource; public class MyService { @Resource private DataSource dataSource; public void doSomething() { // Use dataSource } }
Debug
Known issues
breakingThis API is for Java EE 7; for Jakarta EE 8+ use jakarta.annotation.Resource.
fix
Use jakarta.annotation:jakarta.annotation-api for newer versions.
affects: >=1.0.2.Final
Upgrade
Version history
1.0.2.Finallatest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
Resources
jboss-annotations-api-1-2-spec — mvn dependency:get jboss-annotations-api-1-2-spec · libregistry