-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
8.0.0.Beta1, 8.1.0.Final
-
None
@Provider public class DynamicServerLogggingFilterFeature implements DynamicFeature { @Override public void configure(ResourceInfo ri, FeatureContext fc) { if (MyResource.class.isAssignableFrom(ri.getResourceClass()) && ri.getResourceMethod().isAnnotationPresent(GET.class)) { fc.register(new ServerLoggingFilter()); } } } @Provider @ServerLogged public class ServerLoggingFilter implements ContainerRequestFilter, ContainerResponseFilter { ... }
DynamicServerLogggingFilterFeature is called the the ServerLoggingFilter is registered in the FeatureContext, but the filter(ContainerXContext crc) is never called on the ServerLoggingFilter.
Sample: https://github.com/arun-gupta/javaee7-samples/tree/master/jaxrs/dynamicfilter