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

   I have added some test for the transformer features and, as expected, am 
currently having an issue in native mode with the @DataTypeTransformer 
classpath scanning with the following transformer configuration:
   
   ```
   // custom transformer
   @DataTypeTransformer(name = "uppercase", toType = "plain/uppercase", 
fromType = "plain/text", description = "Transforms from String to Uppercase 
string")
   @RegisterForReflection
   public class UppercaseTransformer extends Transformer {
   
       @Override
       public void transform(Message message, DataType fromType, DataType 
toType) {
           message.setBody(("Transformed " + 
message.getBody(String.class)).toUpperCase());
       }
   }
   ```
   
   ```
   // transformer declaration
   transformer().scan("org.apache.camel.quarkus.transformer");
   ```
   
   @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 ?


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