johnament commented on a change in pull request #369: [CXF-7610] - Adding SPI 
to handle customizations to the server bean.
URL: https://github.com/apache/cxf/pull/369#discussion_r162796903
 
 

 ##########
 File path: 
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java
 ##########
 @@ -902,9 +904,18 @@ public static JAXRSServerFactoryBean 
createApplication(Application app,
             bean.getProperties(true).putAll(appProps);
         }
         bean.setApplication(app);
-
+        customize(bean);
         return bean;
     }
+
+    private static void customize(JAXRSServerFactoryBean bean) {
+        ServiceLoader<JAXRSServerFactoryCustomizationExtension> extensions
 
 Review comment:
   @rmannibucau I'm planning to use this same approach for adding MP 
OpenTracing support as well; TBD though if that's going to be part of Apache 
CXF.
   
   @reta the method right now is on `ResourceUtils`.  I was going to pull this 
out into something like a `JAXRSServerFactoryCustomizationUtils`, so the 
question is whether this should sit in the CDI module or the `jaxrs-frontend` 
module.  Obviously my vote is `jaxrs-frontend`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to