jamesnetherton commented on issue #5478:
URL: https://github.com/apache/camel-quarkus/issues/5478#issuecomment-3425012027

   > @jamesnetherton I would like to understand why the scan does not add the 
UppercaseTransformer transformer in this case when the class is actually 
loaded. Can you give me some pointers on the reason ?
   
   It's probably because `AnnotationTransformerLoader` uses 
`PackageScanClassResolver`, which does not play well in native mode.
   
   What will probably work, is to discover all classes tagged with 
`@DataTypeTransformer` at build time via Jandex (Search the codebase for 
`CombinedIndexBuildItem` for examples), then use results to produce 
`CamelPackageScanClassBuildItem`, to which you pass the collection of the 
Transformer FQCNs ( there's a `CamelPackageScanClassBuildItem` example in the 
Salesforce extension).
   
   You can also automatically register the discovered classes for reflection so 
that you don't need `@RegisterForReflection`.
   
   


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

To unsubscribe, e-mail: [email protected]

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

Reply via email to