Carlos Sierra created CXF-7614:
----------------------------------
Summary: 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
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)