cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabien Thouny (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-5346) Shared filters registered through DynamicFeature are not considered
Date Mon, 21 Oct 2013 23:18:42 GMT

     [ https://issues.apache.org/jira/browse/CXF-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fabien Thouny updated CXF-5346:
-------------------------------

    Attachment: cxf-shared-dynamic-filter-3.0.0-SNAPSHOT.zip

> Shared filters registered through DynamicFeature are not considered
> -------------------------------------------------------------------
>
>                 Key: CXF-5346
>                 URL: https://issues.apache.org/jira/browse/CXF-5346
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.7
>            Reporter: Fabien Thouny
>         Attachments: cxf-shared-dynamic-filter-3.0.0-SNAPSHOT.zip, cxf-shared-dynamic-filter.zip
>
>
> When a shared filter is registered through a DynamicFeature implementation, it's not
considered when reaching the matching resource :
> {code}
> @Provider
> public class DynamicFilterBinder implements DynamicFeature {
>     private static final SharedDynamicFilter SHARED_DYNAMIC_FILTER = new SharedDynamicFilter();
>     @Override
>     public void configure(ResourceInfo resourceInfo, Configurable configurable) {
>         configurable.register(SHARED_DYNAMIC_FILTER);
>     }
> } 
> {code}
> However, when we use a instance per resource, it's considered as expected :
> {code}
>  @Provider
> public class DynamicFilterBinder implements DynamicFeature {
>     @Override
>     public void configure(ResourceInfo resourceInfo, Configurable configurable) {
>         configurable.register(new NotSharedDynamicFilter());
>     }
> }
> {code}
> Please find attached, a sample project with some ITs showing the problem.
>  



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message