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

Andriy Redko commented on CXF-5439:
-----------------------------------

Hi Sergey,

I have some rough thoughts how to tackle this issue having just @Provider 
annotation (please validate my understanding of the CXF internals). On class 
level, we definitely cannot say what kind of interceptor it is (in/out),  but 
by instance we basically can do that: all interceptors are inherited from 
AbstractPhaseInterceptor, which has 'phase' property. Having an instance of the 
class (discovered by @Provider), and validating the base class 
(AbstractPhaseInterceptor), we can make a decision based on its 'phase' and add 
it respectively to in / out interceptor lists.

What do you think?

Thanks.
Andriy

> 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)

Reply via email to