Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 1.05 KB

interceptors_ee.asciidoc

File metadata and controls

21 lines (11 loc) · 1.05 KB

Interceptor bindings in Jakarta EE

Jakarta Enterprise Bean session and message-driven beans support interception as defined in [interceptors].

Interceptor enablement and ordering in Jakarta EE

When running in Jakarta EE, the container must extend the rules defined in [enabled_interceptors] and also ensured that:

  • Interceptors declared using interceptor bindings are called after interceptors declared using the @Interceptor annotation (or using the corresponding element of a deployment descriptor).

  • Interceptors declared using interceptor bindings are called before any around-invoke, around-timeout, or lifecycle event callback methods declared on the target class or any superclass of the target class.

Interceptor resolution in Jakarta EE

For a custom implementation of the Interceptor interface defined in [interceptor], the container also calls intercepts() to determine if the interceptor intercepts an Jakarta Enterprise Bean timeout method invocation.