dufoli commented on a change in pull request #721:
URL: https://github.com/apache/cxf/pull/721#discussion_r521452805



##########
File path: core/src/main/java/org/apache/cxf/common/util/ASMHelper.java
##########
@@ -342,7 +342,10 @@ public ClassWriter createClassWriter() {
         TypeHelperClassLoader loader = getTypeHelperClassLoader(l);
         return loader.lookupDefinedClass(className);
     }
-
+    public static void addExternalClass(String className, ClassLoader l, 
Class<?> cls) {

Review comment:
       @rmannibucau  thanks for response ! ;-)
   1. hmm, I think, I got your point. indeed, you mean that I need to use cxf 
parsing system to get serviceInfo and generate all classes without loading 
servlet or client stuff. The issue is that quarkus use yandex to parse classes 
and gizmo lib to generate code during build time. I am not sure, I can reuse 
the cxf system to parse wsdl, and annoted classe and generate serviceInfo in 
order to generate all classes. Is it doable ? Because I need to inject 
particular classWriter for that. 
   Is it your point ? I have think to a such system at the beginning but it was 
a nightmare to understand how to use cxf for that. Because it is not a usual 
case.
   2. So you mean that I inject my own classLoader which contain my classes in 
order that classLoader see the class I have generated ?
   I do not get you point fully but I will try to code what I understand and I 
will let you review the code and give feedback. 
   
   
    




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to