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

Jason Pell commented on CXF-4816:
---------------------------------

The SERVER_CREATED event occurs after the policy stuff for the service is 
loaded by PolicyInInterceptor, PolicyEngineImpl, etc.  So the ServiceInfo stuff 
added by this event is ignored.

Since the SERVER_CREATED event acts on the Endpoint anyway, I have moved this 
call to the ENDPOINT_SELECTED which will allow class level annotations to be 
effective for Service Implementations.

Without significant refactoring of the PolicyAnnotationListener I don't think 
there is an easy way to support method level annotations against the impl.
                
> Allow use of @Policy on Service Implementation as alternative to Interface
> --------------------------------------------------------------------------
>
>                 Key: CXF-4816
>                 URL: https://issues.apache.org/jira/browse/CXF-4816
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Jason Pell
>            Assignee: Jason Pell
>            Priority: Minor
>
> This would allow the interface to remain pristine and used in situations 
> where references to Policies are not available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to