[
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:39 AM:
---------------------------------------------------------
The JaxWsServerFactoryBean create eventually calls
PolicyEngineImpl.getAggregatedServicePolicy(ServiceInfo si), but the
SERVER_CREATED event
comes after this, so the policies from the ServiceImpl are not part of this
aggregated policy.
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 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