cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5439) Introduce annotations for marking CXF interceptors and features to enable the auto-discovery
Date Mon, 09 Dec 2013 21:18:07 GMT

    [ https://issues.apache.org/jira/browse/CXF-5439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843563#comment-13843563
] 

Sergey Beryozkin commented on CXF-5439:
---------------------------------------

Hi All, how about this 'compromise', instead of introducing 5 new annotations we do:
{code:java}
package org.apache.cxf.interceptors;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Provider {
    ProviderType type;
    ProviderScope scope() default {};
}

enum ProviderType {
 InInterceptor,
 OutInterceptor,
 InFaultInterceptor,
 OutFaultInterceptor,
 Feature
}

enum ProviderScope {
 Client,
 Server
}

{code}

We have only one marker annotation added.
Dan, Christian, I'm not sure you'd be interested in updating JAXWS frontend to use such a
marker, but it would help to complete a JAX-RS related issue, where the auto-discovery of
JAX-RS providers is supported (and which is kind of expected in simple cases), so when we
have a JAX-RS endpoint described in XML auto-discovering JAX-RS providers, it can be handy
to complete it with discovering CXF interceptors too.

ProviderScope may help with addressing the issues with the client running in scope of the
server and sharing the same bus picking up the wrong interceptors, etc. ProviderScope can
be introduced at the next stage though.

IMHO it is reasonable  

> Introduce annotations for marking CXF interceptors and features to enable the auto-discovery
> --------------------------------------------------------------------------------------------
>
>                 Key: CXF-5439
>                 URL: https://issues.apache.org/jira/browse/CXF-5439
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.0-milestone2
>
>




--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message