O'Reilly logo

Java EE 7 First Look by NDJOBO Armel Fabrice

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interceptors

The Interceptors 1.2 Specification was developed under JSR 318. This section just gives you an overview of improvements in the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr318/index.html.

Intercepting some processes

Interceptors are a Java mechanism that allows us to implement some concepts of AOP, in the sense that they give us the ability to separate the code from the crosscutting concerns such as logging, auditing, and security. Thus, due to this specification, we can intercept invocations of methods, lifecycle callback events, and timeout events.

Interceptors allow you to intercept method calls as well as the outbreak of some events. During ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required