Skip to content

Commit

Permalink
Merge pull request #106 from Ladicek/clarify-get-interceptor-bindings
Browse files Browse the repository at this point in the history
Clarify behavior of InvocationContext.getInterceptorBindings() in case of inherited/transitive bindings
  • Loading branch information
starksm64 committed Jan 31, 2024
2 parents 0ea3a7b + e70f6de commit a37199b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/src/main/java/jakarta/interceptor/InvocationContext.java
Expand Up @@ -147,7 +147,8 @@ public interface InvocationContext {
* invocation is being intercepted. In case there is no target method or target constructor,
* interceptor binding annotations applied to the target class are returned.
* <p>
* All interceptor binding annotations are returned, including interceptor binding annotations
* All interceptor binding annotations are returned, including inherited interceptor binding
* annotations, transitive interceptor binding annotations, interceptor binding annotations
* that associate interceptors of a different interceptor method type, as well as interceptor
* binding annotations that associate no interceptor.
* <p>
Expand Down
Expand Up @@ -310,8 +310,9 @@ The `getInterceptorBindings` method returns the set of interceptor binding
annotations for the method or constructor whose invocation is being intercepted.
In case there is no target method or target constructor, interceptor binding
annotations applied to the target class are returned. All interceptor binding
annotations are returned, including interceptor binding annotations that associate
interceptors of a different interceptor method type, as well as interceptor
annotations are returned, including inherited interceptor binding annotations,
transitive interceptor binding annotations, interceptor binding annotations that
associate interceptors of a different interceptor method type, as well as interceptor
binding annotations that associate no interceptor. The zero-parameter variant
returns all interceptor binding annotations, while the variant with a `Class`
parameter returns only interceptor binding annotations of given type.
Expand Down

0 comments on commit a37199b

Please sign in to comment.