cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pell (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-4816) Allow use of @Policy on Service Implementation as alternative to Interface
Date Thu, 07 Feb 2013 09:33:13 GMT

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

Jason Pell edited comment on CXF-4816 at 2/7/13 9:32 AM:
---------------------------------------------------------

The SERVER_CREATED event occurs after the policy stuff for the service is loaded by 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.
                
      was (Author: pellcorp):
    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

Mime
View raw message