You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2018/01/17 17:13:01 UTC
[jira] [Comment Edited] (CXF-7614) DynamicFeature is not invoked
for sub resources
[ 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:12 PM:
----------------------------------------------------------------
OK, so, are you suggesting that DynmaicFeature is applied at runtime ?
was (Author: sergey_beryozkin):
OK, so, are you suggesting that DynmaicFeature is applied at runtime ?
* Visual
> 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)