Details
-
Sub-task
-
Resolution: Done
-
Major
-
None
-
Sprint to Beta3 Release
-
Description
Interceptor bindings
A filter or interceptor class can be decorated with multiple binding annotations. In this case, in accordance with the semantics described in CDI, all those annotations must be present in the resource class or method for the binding to be established. For example, if LoggingFilter is defined as follows:
@Provider @Logged @Verbose class LoggingFilter implements ContainerRequestFilter, ContainerResponseFilter { ... }
then method hello above must be annotated with both @Logged and @Verbose for the binding to be in effect.
Binding annotations can also be applied to resource classes and Application subclasses. Binding annotations that decorate resource classes apply to all resource methods defined in them.
This means that validation should not report an error if binding annotation are found on Filters and Resource classes, Resource methods and the Application subclass (if defined)
Attachments
Issue Links
- is blocked by
-
JBIDE-16753 Provide support for server-side Filters and Interceptors
- Closed