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

        

Reply via email to