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

jboss-interceptors-api-1-2-spec

JSON →
library2.0.0.Finaljavamavenunverified

Jakarta Interceptors defines a means of interposing on business method invocations and specific events—such as lifecycle events and timeout events—that occur on instances of Jakarta EE components and other managed classes.

<dependency> <groupId>org.jboss.spec.javax.interceptor</groupId> <artifactId>jboss-interceptors-api_1.2_spec</artifactId> <version>2.0.0.Final</version> </dependency>
INSTALL
IMPORT
SIG · JBOSS-INTERCEPTORS
J
jboss-interceptors-api-1-2-spec
dependency-injectionjavav2.0.0.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.

Interceptor
jakarta.interceptor.Interceptor

Define a simple logging interceptor.

import jakarta.interceptor.Interceptor; import jakarta.interceptor.AroundInvoke; import jakarta.interceptor.InvocationContext; @Interceptor public class LoggingInterceptor { @AroundInvoke public Object log(InvocationContext ctx) throws Exception { System.out.println("Before method: " + ctx.getMethod().getName()); return ctx.proceed(); } }
Debug
Known issues
breakingThis artifact uses the Jakarta namespace; older versions use javax.interceptor.
fix
Use jakarta.interceptor for Jakarta EE 9+ or javax.interceptor for older versions.
affects: >=2.0.0
Upgrade
Version history
2.0.0.Finallatest on Maven
Audit
Dependencies

No dependency data recorded yet.

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