示例#1
0
 public void registryUpdated(JaxrsInterceptorRegistry registry) {
   if (registry.getIntf().equals(WriterInterceptor.class)) {
     writerInterceptors =
         providerFactory.getServerWriterInterceptorRegistry().postMatch(resourceClass, method);
   } else if (registry.getIntf().equals(ContainerRequestFilter.class)) {
     requestFilters =
         providerFactory.getContainerRequestFilterRegistry().postMatch(resourceClass, method);
   } else if (registry.getIntf().equals(ContainerResponseFilter.class)) {
     responseFilters =
         providerFactory.getContainerResponseFilterRegistry().postMatch(resourceClass, method);
   }
 }
示例#2
0
 public void registryUpdated(JaxrsInterceptorRegistry registry) {
   this.resourceMethodProviderFactory = new ResteasyProviderFactory(parentProviderFactory);
   for (DynamicFeature feature : parentProviderFactory.getServerDynamicFeatures()) {
     feature.configure(resourceInfo, new FeatureContextDelegate(resourceMethodProviderFactory));
   }
   if (registry.getIntf().equals(WriterInterceptor.class)) {
     writerInterceptors =
         resourceMethodProviderFactory
             .getServerWriterInterceptorRegistry()
             .postMatch(resourceClass, method);
   } else if (registry.getIntf().equals(ContainerRequestFilter.class)) {
     requestFilters =
         resourceMethodProviderFactory
             .getContainerRequestFilterRegistry()
             .postMatch(resourceClass, method);
   } else if (registry.getIntf().equals(ContainerResponseFilter.class)) {
     responseFilters =
         resourceMethodProviderFactory
             .getContainerResponseFilterRegistry()
             .postMatch(resourceClass, method);
   }
 }