[ 
https://issues.apache.org/jira/browse/CXF-7614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carlos Sierra reopened CXF-7614:
--------------------------------

ok... so it looks like if _staticResolution_ is set to true then _sub resource 
locators_ that return _Object_ are no longer resolved at runtime.

It looks like this behaviour should not be governed by the same flag. Shouldn't 
this be resolved statically if the information is present in types when 
DynamicFeatures are invoked? If there is no information that's fine, but the 
invokation of the DynamicFeature should not affect the later resolution in the 
runtime, should it?

I would expect the runtime to always invoke DynamicFeature with sub resource 
information whenever that information is available and then try to resolve the 
sub resources in request time as dynamically as possible.

> 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)

Reply via email to