[jbosstools-issues] [JBoss JIRA] (JBIDE-16752) Provide validation for JAX-RS 2.0 Interceptors and Filters (with Name Binding)

Xavier Coulon (JIRA) issues at jboss.org
Tue Mar 25 08:02:16 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-16752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Coulon updated JBIDE-16752:
----------------------------------

    Description: 
*Interceptor bindings*

{quote}
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:
{quote}
{code}
@Provider
@Logged @Verbose
class LoggingFilter implements ContainerRequestFilter,
                                  ContainerResponseFilter {
...
}
{code}
{quote}
then method hello above must be annotated with both @Logged and @Verbose for the binding to be in effect.
{quote}

{quote}
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.
{quote}
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) 

  was:
*Interceptor bindings*

{quote}
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:
{quote}
{code}
@Provider
@Logged @Verbose
class LoggingFilter implements ContainerRequestFilter,
                                  ContainerResponseFilter {
...
}
{code}
{quote}
then method hello above must be annotated with both @Logged and @Verbose for the binding to be in effect.
{quote}

{quote}
Binding annotations can also be applied to resource classes and Application subclasses. Binding annota- tions that decorate resource classes apply to all resource methods defined in them.
{quote}
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) 


    
> Provide validation for JAX-RS 2.0 Interceptors and Filters (with Name Binding)
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-16752
>                 URL: https://issues.jboss.org/browse/JBIDE-16752
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: webservices
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>              Labels: new_and_noteworthy
>             Fix For: 4.2.0.Beta1
>
>
> *Interceptor bindings*
> {quote}
> 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:
> {quote}
> {code}
> @Provider
> @Logged @Verbose
> class LoggingFilter implements ContainerRequestFilter,
>                                   ContainerResponseFilter {
> ...
> }
> {code}
> {quote}
> then method hello above must be annotated with both @Logged and @Verbose for the binding to be in effect.
> {quote}
> {quote}
> 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.
> {quote}
> 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) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list