[
https://issues.apache.org/jira/browse/CXF-7614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16329026#comment-16329026
]
Sergey Beryozkin edited comment on CXF-7614 at 1/17/18 5:13 PM:
----------------------------------------------------------------
OK, so, are you suggesting that DynamicFeature is applied during the request ?
was (Author: sergey_beryozkin):
OK, so, are you suggesting that DynmaicFeature is applied during the request ?
> DynamicFeature is not invoked for sub resources
> -----------------------------------------------
>
> Key: CXF-7614
> URL: https://issues.apache.org/jira/browse/CXF-7614
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.2.2
> Reporter: Carlos Sierra
> Priority: Major
>
> According to the javadoc of DynamicFeature the callback method is to be
> invoked for relevant methods in resource or sub-resources. In the current
> implementation methods on sub-resource are NOT being invoked.
> {code:java}
> public class ResourceWithSubResource {
> @Path("/resource1")
> public SubResource getResource() {
> return new SubResource("Resource1: ");
> }
> }{code}
> {code:java}
> public class SubResource {
> public SubResource(String param) {
> _param = param;
> }
> @GET
> public String getParam() {
> return "Returning: " + _param;
> }
> @Path("/{path}")
> public SubResource subPath(@PathParam("path") String subPath) {
> return new SubResource(_param + "-" + subPath);
> }
> private String _param;
> }
> {code}
> in the provided example a _DynamicFeature_ is only invoked for
> _getResource()_ and it should also be invoked for relevant methods in
> _SubResource_.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)