reta 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_r162791557
 
 

 ##########
 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 Sorry, got confused by events in CDI. I think it is possible to 
implement the customization using CXF events along with bus extension. However, 
we don't have event types which are fired at the moment when we have to apply 
the customization (in case of SSE at least) so we would have to add one. But in 
general it is doable with a bit more code changes. 

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