You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/16 19:25:39 UTC

[jira] [Resolved] (CXF-4033) Interceptor and Features annotations require context classloader

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

Daniel Kulp resolved CXF-4033.
------------------------------

    Resolution: Fixed
    
> Interceptor and Features annotations require context classloader
> ----------------------------------------------------------------
>
>                 Key: CXF-4033
>                 URL: https://issues.apache.org/jira/browse/CXF-4033
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Daniel Kulp
>            Assignee: Daniel Kulp
>             Fix For: 2.4.6, 2.5.2
>
>
> The @InInterceptors and @Features annotations  currently define their types via a String[].  This causes a few issues:
> 1) Spelling of the classnames is not checkable until runtime.  
> 2) No type checking until runtime.
> 3) The context classloader needs to be set correctly to load the classes which is not always the case (think OSGI).
> It would be good to add:
> Class<? extends Interceptor>[] classes() default { };
> to the annotations to allow the developer to use the actual class objects which will provide type checking (class is the correct type) as well as allow the regular class loading mechanisms to work properly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira